/* Expert Panel Variables */
:root {
    --primary: #4338ca;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --font: 'Outfit', sans-serif;
}

body {
    font-family: var(--font);
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.expert-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.top-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    z-index: 1001;
    border-bottom: 1px solid #f1f5f9;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

.expert-info h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.expert-info span {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.logout-btn {
    background: #fef2f2;
    border: none;
    color: var(--danger);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    background: transparent;
    padding: 0;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

/* Auth Page */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: block;
    margin: 0 auto 32px;
    height: 48px;
    width: auto;
}

.auth-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 32px;
    color: #64748b;
    font-size: 0.95rem;
}

.form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-control, .form-input, .form-select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
    background-color: white;
    outline: none;
}

.form-control:focus, .form-input:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.1);
}

/* Dashboard Specific Styles */
.current-appt {
    border: 2px solid var(--primary-light) !important;
    position: relative;
    overflow: hidden;
}

.current-appt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.customer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0 !important;
    color: var(--text-main);
}

.service-detail {
    display: flex;
    gap: 8px;
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.actions {
    display: grid;
    margin-top: 20px;
}

/* Queue List */
.queue-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-time {
    width: 70px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
}

.queue-info {
    flex: 1;
}

.queue-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.queue-service {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--text-sub);
    font-style: italic;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    border-top: 1px solid #f1f5f9;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    width: 25%;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

/* Loader */
#page-loader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.5s ease-out;
}
