/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-gold);
    color: #070B14;
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2.5rem;
    font-family: var(--font-primary);
    font-size: var(--fs-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(200,169,74,0.4);
    color: #070B14;
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-primary:disabled:hover {
    background: var(--color-gold);
    box-shadow: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 50px;
    padding: 0.875rem 2.5rem;
    font-family: var(--font-primary);
    font-size: var(--fs-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--color-gold);
    color: #070B14;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-sm);
}
.btn-lg {
    padding: 1rem 3rem;
    font-size: var(--fs-xl);
}
.btn-block {
    width: 100%;
}
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
}
.form-group label .required {
    color: var(--color-gold);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200,169,74,0.15);
}
input::placeholder,
textarea::placeholder {
    color: rgba(138,143,168,0.5);
}
input.error,
select.error,
textarea.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C8A94A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

/* ========== CHECKBOXES ========== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--color-text);
    font-size: var(--fs-base);
    font-weight: 400;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-gold);
    cursor: pointer;
    flex-shrink: 0;
}

/* ========== BADGE ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: var(--fs-xs);
    font-weight: 700;
}
.badge-pending { background: rgba(200,169,74,0.2); color: var(--color-gold); }
.badge-processing { background: rgba(52,152,219,0.2); color: #3498DB; }
.badge-ready { background: rgba(46,204,113,0.2); color: var(--color-success); }
.badge-delivered { background: rgba(138,143,168,0.2); color: var(--color-text-muted); }
.badge-new { background: rgba(200,169,74,0.2); color: var(--color-gold); }
.badge-contacted { background: rgba(52,152,219,0.2); color: #3498DB; }
.badge-inprogress { background: rgba(155,89,182,0.2); color: #9B59B6; }
.badge-done { background: rgba(46,204,113,0.2); color: var(--color-success); }

/* ========== SWIPER OVERRIDES ========== */
.swiper-pagination-bullet {
    background: var(--color-gold-dim) !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background: var(--color-gold) !important;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-gold) !important;
}

/* ========== PAGE: ADMIN ========== */
.admin-body {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--color-surface-2);
    border-left: 1px solid var(--color-border);
    padding: 2rem 0;
    flex-shrink: 0;
    min-height: 100vh;
}
.admin-sidebar .sidebar-brand {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-sidebar .sidebar-brand svg {
    width: 36px;
    height: 36px;
}
.admin-sidebar .sidebar-brand span {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text);
}
.admin-sidebar .sidebar-brand span .gold {
    color: var(--color-gold);
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--color-gold);
    background: var(--color-gold-dim);
    border-right-color: var(--color-gold);
}
.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-header h1 {
    font-size: var(--fs-2xl);
    font-weight: 700;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.admin-stat-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.admin-stat-info h3 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--color-gold);
}
.admin-stat-info p {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: right;
    padding: 1rem;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
}
.admin-table td {
    padding: 1rem;
    color: var(--color-text);
    font-size: var(--fs-sm);
    border-bottom: 1px solid rgba(200,169,74,0.08);
}
.admin-table tr:hover td {
    background: var(--color-gold-dim);
}
.admin-table .status-select {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: var(--fs-xs);
    cursor: pointer;
}

/* ========== ADMIN LOGIN ========== */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg);
}
.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem;
}
.admin-login-card .login-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.admin-login-card .login-logo svg {
    width: 64px;
    height: 64px;
}
.admin-login-card .login-logo h2 {
    font-size: var(--fs-xl);
    margin-top: 1rem;
    color: var(--color-text);
}
.admin-login-card .login-logo h2 .gold {
    color: var(--color-gold);
}

/* ========== TOGGLE SIDEBAR MOBILE ========== */
.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .admin-body {
        flex-direction: column;
    }
    .admin-sidebar {
        display: none;
        width: 100%;
        min-height: auto;
    }
    .admin-sidebar.open {
        display: block;
    }
    .sidebar-toggle {
        display: inline-block;
    }
    .admin-main {
        padding: 1rem;
    }
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}
