/* Admin Panel Styles */
:root {
    --primary: #4ee193;
    --primary-dark: #3dc980;
    --primary-light: rgba(78, 225, 147, 0.08);
    --primary-glow: rgba(78, 225, 147, 0.25);
    --dark: #0f1117;
    --dark-light: #1a1d27;
    --dark-card: #1e2130;
    --graphite: #53616f;
    --graphite-light: #8892a0;
    --light: #f0f2f5;
    --white: #ffffff;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1117 0%, #1a1d27 50%, #2d3748 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 56px;
    color: var(--primary);
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px var(--primary-glow));
}

.login-logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-logo p {
    color: var(--graphite-light);
    font-size: 15px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary);
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 225, 147, 0.2);
}

.form-options {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--graphite);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.error-message {
    background: #fee;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 225, 147, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: var(--graphite-light);
    font-size: 12px;
}

/* ========== ADMIN LAYOUT ========== */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--light);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.sidebar-logo i {
    color: var(--primary);
    font-size: 30px;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    font-weight: 500;
}

.nav-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(78, 225, 147, 0.15), rgba(78, 225, 147, 0.05));
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(78, 225, 147, 0.2);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 16px;
}

.logout-btn {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-sm);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--light);
}

.admin-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: var(--primary-light);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.admin-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 12px;
    background: var(--primary-light);
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.admin-user i {
    font-size: 24px;
    color: var(--primary);
}

/* Content */
.admin-content {
    padding: 32px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.services { background: var(--primary-light); color: var(--primary); }
.stat-icon.pricing { background: var(--warning-light); color: var(--warning); }
.stat-icon.team { background: var(--success-light); color: var(--success); }
.stat-icon.contacts { background: var(--info-light); color: var(--info); }
.stat-icon.appointments { background: var(--info-light); color: var(--info); }

.stat-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-info p {
    color: var(--graphite-light);
    font-size: 14px;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-actions h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.action-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(78, 225, 147, 0.25);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 225, 147, 0.35);
}

/* Recent Changes */
.recent-changes {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.recent-changes h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.changes-list {
    max-height: 320px;
    overflow-y: auto;
}

.change-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    background: var(--light);
    margin-bottom: 8px;
    transition: var(--transition);
}

.change-item:hover {
    background: var(--primary-light);
}

.change-action {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.change-date {
    font-size: 13px;
    color: var(--graphite-light);
}

.changes-list .empty-state {
    color: var(--graphite-light);
    text-align: center;
    padding: 20px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.2px;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(78, 225, 147, 0.25);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 225, 147, 0.35);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.item-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.item-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--primary-glow);
}

.item-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.item-card p {
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.65;
}

.item-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-edit, .btn-delete {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-edit {
    background: var(--info-light);
    color: var(--info);
}

.btn-edit:hover {
    background: var(--info);
    color: white;
    transform: scale(1.08);
}

.btn-delete {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.08);
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.item-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--dark);
}

.item-card-actions {
    display: flex;
    gap: 8px;
}

.item-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-btn.edit {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.item-btn.delete {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.item-btn:hover {
    transform: scale(1.1);
}

.item-card-body {
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.6;
}

.item-card-body p {
    margin-bottom: 10px;
}

.item-card-body p:last-child {
    margin-bottom: 0;
}

/* Form Container */
.form-container {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.content-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-form label {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.content-form label i {
    color: var(--primary);
    width: 18px;
}

.content-form input,
.content-form textarea,
.content-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.content-form input:focus,
.content-form textarea:focus,
.content-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

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

.btn-save {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    box-shadow: 0 4px 14px rgba(78, 225, 147, 0.25);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 225, 147, 0.35);
}

.btn-add-small {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px dashed var(--primary);
    padding: 10px 18px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.btn-add-small:hover {
    background: var(--primary);
    color: var(--dark);
    border-style: solid;
}

/* ==================== Appointments Table ==================== */
.appointments-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointments-filters select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.appointments-filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-refresh {
    background: var(--graphite);
    color: var(--white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-refresh:hover {
    background: var(--dark);
    transform: rotate(180deg);
}

.appointments-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.table-responsive {
    overflow-x: auto;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.appointments-table thead {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: var(--white);
}

.appointments-table th {
    padding: 16px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
}

.appointments-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.appointments-table tbody tr {
    transition: background 0.15s;
}

.appointments-table tbody tr:hover {
    background: var(--primary-light);
}

.appointments-table tbody tr.status-new { border-left: 3px solid var(--warning); }
.appointments-table tbody tr.status-confirmed { border-left: 3px solid var(--primary); }
.appointments-table tbody tr.status-completed { border-left: 3px solid var(--success); }
.appointments-table tbody tr.status-cancelled { border-left: 3px solid var(--danger); opacity: 0.75; }

.appointment-date {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 13px;
}

.appointment-name {
    font-weight: 600;
}

.appointment-phone {
    white-space: nowrap;
    font-family: monospace;
}

.appointment-car {
    color: var(--text-secondary);
}

.appointment-service {
    color: var(--graphite-light);
}

.appointment-comment {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.new {
    background: rgba(243, 156, 18, 0.15);
    color: #e67e22;
}

.status-badge.confirmed {
    background: rgba(78, 225, 147, 0.2);
    color: var(--primary-dark);
}

.status-badge.completed {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

.status-badge.cancelled {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

/* Action Buttons */
.appointment-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.appointment-actions .btn-status {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--white);
    padding: 0;
}

.appointment-actions .btn-status:hover {
    transform: scale(1.1);
}

.appointment-actions .btn-confirm {
    background: var(--primary);
}

.appointment-actions .btn-complete {
    background: var(--success);
}

.appointment-actions .btn-cancel {
    background: var(--danger);
}

.appointment-actions .btn-delete-apt {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    margin-left: 4px;
}

.appointment-actions .btn-delete-apt:hover {
    background: var(--danger);
    color: var(--white);
}

/* Empty state */
.empty-state-appointments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-appointments i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Appointments count */
.appointments-count {
    padding: 12px 16px;
    background: rgba(78, 225, 147, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--graphite-light);
}

.appointments-count strong {
    color: var(--graphite);
}

/* Stats cards in dashboard */
.btn-save {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 225, 147, 0.4);
}

.btn-add-small {
    background: rgba(78, 225, 147, 0.15);
    color: var(--primary);
    border: 2px dashed var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-add-small:hover {
    background: rgba(78, 225, 147, 0.25);
}

/* Features List */
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.feature-item input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
}

.feature-item .remove-feature {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.feature-item .remove-feature:hover {
    background: var(--danger);
    color: var(--white);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--graphite);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--danger);
}

.modal-window h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 25px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-form label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 225, 147, 0.2);
}

.modal-form .btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(78, 225, 147, 0.25);
}

.modal-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 225, 147, 0.35);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
}

.toast {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlide 0.3s ease;
    min-width: 300px;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast i {
    font-size: 20px;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }

/* Stats Inputs */
.stats-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-main {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .admin-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .admin-header {
        padding: 14px 16px;
    }

    .admin-header h1 {
        font-size: 20px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .btn-add {
        justify-content: center;
    }

    .quick-actions {
        padding: 20px;
        margin-bottom: 24px;
    }

    .action-buttons {
        gap: 10px;
    }

    .action-btn {
        padding: 12px 18px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .appointments-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .appointments-table th,
    .appointments-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .appointment-comment {
        max-width: 150px;
    }

    .appointment-actions {
        gap: 4px;
    }

    .appointment-actions .btn-status {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .modal-window {
        padding: 24px;
        width: 95%;
    }

    .form-container {
        padding: 20px;
    }

    .recent-changes {
        padding: 20px;
    }
}

/* ==================== GALLERY ADMIN ==================== */
.empty-gallery-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--graphite-light);
    grid-column: 1 / -1;
}
.empty-gallery-state i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.3;
    display: block;
}
.empty-gallery-state h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}
.empty-gallery-state p { font-size: 14px; }

/* Gallery Cards */
.gallery-card-admin {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.gallery-card-admin:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-glow);
}
.gallery-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #f0f0f0;
}
.gallery-img-box {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}
.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-card-admin:hover .gallery-img-box img { transform: scale(1.05); }
.gallery-img-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.gallery-img-badge.after { left: auto; right: 8px; }
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    gap: 6px;
}
.gallery-placeholder i { font-size: 28px; }
.gallery-placeholder span { font-size: 12px; font-weight: 600; }

.gallery-card-info { padding: 16px; }
.gallery-card-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.gallery-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gallery-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.gallery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.gallery-visibility {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}
.gallery-visibility.visible { color: var(--success); }
.gallery-visibility.hidden { color: var(--danger); opacity: 0.7; }
.gallery-card-actions { display: flex; gap: 6px; }
.gallery-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.gallery-btn.edit { background: var(--info-light); color: var(--info); }
.gallery-btn.edit:hover { background: var(--info); color: white; transform: scale(1.1); }
.gallery-btn.delete { background: var(--danger-light); color: var(--danger); }
.gallery-btn.delete:hover { background: var(--danger); color: white; transform: scale(1.1); }

/* Gallery Upload Modal */
.gallery-modal .modal-window { max-width: 640px; }
.gallery-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.gallery-form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 6px; font-size: 14px; }
.gallery-form-group input,
.gallery-form-group textarea,
.gallery-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.gallery-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.gallery-form-group input:focus,
.gallery-form-group textarea:focus,
.gallery-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.gallery-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.upload-box label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: 14px; }
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafbfc;
}
.upload-area:hover,
.upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.upload-area p { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--graphite-light); }

.upload-preview { position: relative; margin-top: 8px; border-radius: var(--radius-sm); overflow: hidden; }
.upload-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.upload-preview .remove-img {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239,68,68,0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}
.upload-preview .remove-img:hover { background: var(--danger); transform: scale(1.1); }

.upload-progress {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-top: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
}

.gallery-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.gallery-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}
.gallery-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* Reviews Admin Stats */
.reviews-filter-bar { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; }
.review-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.review-stat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.review-stat-number { font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.review-stat-card.pending .review-stat-number { color: var(--warning); }
.review-stat-card.approved .review-stat-number { color: var(--success); }
.review-stat-card.rejected .review-stat-number { color: var(--danger); }
.review-stat-card.avg .review-stat-number { color: var(--info); }
.review-stat-label { font-size: 13px; color: var(--graphite-light); font-weight: 500; }

@media (max-width: 768px) {
    .gallery-form-row,
    .gallery-upload-row { grid-template-columns: 1fr; }
    .gallery-modal .modal-window { max-width: 95%; padding: 20px; }
    .review-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== Change Password ==================== */
.change-pass-btn {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning) !important;
}
.change-pass-btn:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

.password-modal .modal-window {
    max-width: 420px;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--graphite-light);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

.password-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid var(--danger);
}

.password-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid var(--success);
}
