/* RUBAB Salon - Complete Stylesheet */
:root {
    --primary: #c9a227;
    --primary-dark: #a88920;
    --primary-light: #f5e6b3;
    --dark: #0a0a0a;
    --light: #faf8f5;
    --white: #fff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-500: #737373;
    --gray-700: #404040;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --font: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--gray-700); background: var(--light); min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-family: var(--font); font-size: 14px; font-weight: 600; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: all 0.3s; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--dark); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--dark); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea, .form-input { width: 100%; padding: 14px 16px; font-family: var(--font); font-size: 15px; border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
.form-group input:focus, .form-input:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.form-success { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.form-success a { color: #166534; text-decoration: underline; }
.gender-select { display: flex; gap: 12px; }
.gender-option { flex: 1; }
.gender-option input { display: none; }
.gender-option span { display: flex; flex-direction: column; align-items: center; padding: 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; }
.gender-option input:checked + span { border-color: var(--primary); background: var(--primary-light); }

/* Alerts */
.alert { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); padding: 16px 40px 16px 20px; border-radius: var(--radius); z-index: 1000; animation: slideDown 0.3s; max-width: 90%; }
.alert button { position: absolute; right: 12px; top: 12px; background: none; border: none; cursor: pointer; font-size: 18px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
@keyframes slideDown { from { transform: translateX(-50%) translateY(-100%); } to { transform: translateX(-50%) translateY(0); } }

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { padding: 16px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; min-width: 280px; animation: slideIn 0.3s; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-title { font-weight: 600; margin-bottom: 4px; }
.toast-message { font-size: 14px; color: var(--gray-500); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Header */
.header { background: var(--dark); border-bottom: 1px solid #1a1a1a; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav { display: none; gap: 24px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--gray-500); }
.nav a:hover { color: var(--primary); }
.header-right { display: none; align-items: center; gap: 16px; }
.user-info { font-size: 14px; color: var(--gray-500); }
.menu-toggle { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }
@media (min-width: 768px) { .nav, .header-right { display: flex; } .menu-toggle { display: none; } }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: var(--white); box-shadow: var(--shadow); z-index: 1000; transition: right 0.3s; }
.mobile-menu.show { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--gray-200); font-weight: 600; }
.mobile-menu-header button { background: none; border: none; font-size: 24px; cursor: pointer; }
.mobile-menu a { display: block; padding: 14px 20px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mobile-menu a.logout { color: var(--danger); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 80px 20px; background: linear-gradient(135deg, var(--dark), #1a1a1a); color: var(--white); text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 8px 16px; background: rgba(201,162,39,0.2); border: 1px solid var(--primary); border-radius: 50px; font-size: 13px; color: var(--primary); margin-bottom: 24px; }
.hero h1 { font-size: clamp(48px, 12vw, 96px); font-weight: 800; line-height: 1; margin-bottom: 16px; }
.hero .tagline { font-size: clamp(18px, 4vw, 24px); color: var(--primary); margin-bottom: 16px; }
.hero .desc { font-size: 16px; color: var(--gray-500); max-width: 500px; margin: 0 auto 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-btns .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--white); }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat span { display: block; font-size: 32px; font-weight: 700; color: var(--primary); }

/* Sections */
.features, .services-preview, .services-page { padding: 80px 20px; }
.features { background: var(--white); }
.services-preview { background: var(--gray-100); }
section h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 48px; }
.page-header.centered { text-align: center; margin-bottom: 48px; }
.page-header.centered p { color: var(--gray-500); margin-top: 8px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.feature { padding: 32px; background: var(--gray-100); border-radius: var(--radius); text-align: center; }
.feature span { font-size: 48px; display: block; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--gray-500); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 20px; transition: all 0.3s; border: 1px solid var(--gray-200); }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card .service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.service-card h4 { font-size: 15px; }
.service-card .duration, .service-card p { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.service-card .price { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.old-price { font-size: 13px; color: var(--gray-500); text-decoration: line-through; margin-left: 6px; }
.discount, .discount-tag { font-size: 11px; background: var(--success); color: white; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.gender-tag { font-size: 12px; padding: 4px 8px; border-radius: 4px; background: var(--gray-100); }
.gender-tag.male { background: #dbeafe; color: #1d4ed8; }
.gender-tag.female { background: #fce7f3; color: #be185d; }
.gender-tag.unisex { background: #f0fdf4; color: #15803d; }

.cta { padding: 80px 20px; background: linear-gradient(135deg, var(--dark), #1a1a1a); text-align: center; color: var(--white); }
.cta h2 { color: var(--white); }
.cta p { color: var(--gray-500); margin-bottom: 24px; }

/* Footer */
.footer { background: var(--dark); color: var(--gray-500); padding: 40px 20px 20px; }
.footer-inner { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto 20px; flex-wrap: wrap; gap: 24px; }
.footer-brand .logo { color: var(--primary); margin-bottom: 8px; display: inline-block; }
.footer-brand p { color: var(--gray-500); font-size: 14px; }
.footer-contact p { font-size: 14px; margin-bottom: 4px; }
.footer-contact a { color: var(--gray-500); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; max-width: 1200px; margin: 0 auto; }

/* Auth Pages */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, var(--dark), #1a1a1a); }
.auth-card { background: var(--white); border-radius: 24px; padding: 40px 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .logo-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.auth-header h1 { font-size: 28px; font-weight: 800; color: var(--dark); }
.auth-header p { font-size: 14px; color: var(--gray-500); }
.form-footer { text-align: right; margin-bottom: 16px; }
.form-footer a { font-size: 13px; color: var(--gray-500); }
.auth-divider { text-align: center; margin: 24px 0; color: var(--gray-500); font-size: 13px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--gray-500); }
.auth-switch a { font-weight: 600; }

/* Dashboard */
.dashboard { min-height: 100vh; background: var(--gray-100); padding-bottom: 80px; }
.dashboard .container { max-width: 800px; padding: 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 24px; }

/* Queue Status */
.queue-status { background: linear-gradient(135deg, var(--dark), #1a1a1a); color: var(--white); border-radius: 24px; padding: 32px; margin-bottom: 24px; }
.queue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.queue-header h2 { font-size: 18px; }
.status-badge { padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-badge.waiting { background: var(--warning); color: var(--dark); }
.status-badge.active { background: var(--info); color: var(--white); }
.status-badge.completed { background: var(--success); color: var(--white); }
.wait-display { text-align: center; margin-bottom: 24px; }
.wait-time { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.wait-time .time { font-size: 72px; font-weight: 800; color: var(--primary); line-height: 1; }
.wait-time .unit { font-size: 24px; color: var(--gray-500); }
.wait-display p { font-size: 14px; color: var(--gray-500); }
.queue-stats { display: flex; justify-content: center; gap: 48px; margin-bottom: 24px; }
.queue-stats .stat { text-align: center; }
.queue-stats .stat span { display: block; font-size: 24px; font-weight: 700; }
.queue-stats .stat label { font-size: 12px; color: var(--gray-500); }
.current-service { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.current-service .icon { font-size: 32px; }
.current-service .info { flex: 1; }
.current-service .info h4 { font-size: 16px; margin-bottom: 4px; }
.current-service .info p { font-size: 13px; color: var(--gray-500); }
.current-service .price { font-size: 18px; font-weight: 700; color: var(--primary); }

/* Empty State */
.empty-state { text-align: center; padding: 48px 20px; background: var(--white); border-radius: 16px; margin-bottom: 24px; }
.empty-state .icon { font-size: 64px; display: block; margin-bottom: 16px; }
.empty-state h2 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); }

/* Section */
.section { background: var(--white); border-radius: 16px; padding: 20px; margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2, .section-header h3 { font-size: 16px; font-weight: 600; text-align: left; margin-bottom: 0; }
.badge { font-size: 12px; padding: 4px 10px; background: var(--gray-100); border-radius: 50px; color: var(--gray-500); }

/* History */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.history-item:last-child { border-bottom: none; }
.history-item .info h4 { font-size: 14px; margin-bottom: 2px; }
.history-item .info p { font-size: 12px; color: var(--gray-500); }
.history-item .price { font-weight: 600; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-200); display: flex; justify-content: space-around; padding: 8px 0; z-index: 100; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; color: var(--gray-500); font-size: 11px; }
.bottom-nav a span { font-size: 20px; }
.bottom-nav a.active { color: var(--primary); }

/* Modal */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s; padding: 20px; }
.modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--white); border-radius: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { font-size: 18px; }
.modal-header button { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-500); }
.modal-body { padding: 24px; }

/* Admin Pages */
.admin-dashboard, .admin-page { min-height: 100vh; background: var(--gray-100); }
.admin-dashboard .container, .admin-page .container { max-width: 1200px; padding: 20px; }
.date { background: var(--primary-light); color: var(--primary-dark); padding: 8px 16px; border-radius: var(--radius); font-size: 14px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-grid.small { grid-template-columns: repeat(3, 1fr); }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-card.highlight { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.stat-card .icon { font-size: 28px; }
.stat-card .info .value { display: block; font-size: 22px; font-weight: 700; }
.stat-card .info .label { font-size: 12px; color: var(--gray-500); }
.stat-card.highlight .info .label { color: var(--dark); }

/* Queue List */
.queue-list { display: flex; flex-direction: column; gap: 12px; }
.queue-item { display: flex; align-items: center; gap: 16px; background: var(--gray-100); border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 16px; flex-wrap: wrap; }
.queue-item.active { border-color: var(--info); background: #eff6ff; }
.queue-item .position { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--gray-200); border-radius: 50%; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.queue-item.active .position { background: var(--info); color: white; }
.queue-item .info { flex: 1; min-width: 150px; }
.queue-item .info h4 { font-size: 15px; margin-bottom: 2px; }
.queue-item .info p { font-size: 12px; color: var(--gray-500); margin: 0; }
.queue-item .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.employee-select { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 12px; }

/* Quick Links */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; background: var(--gray-100); border-radius: var(--radius); color: var(--gray-700); }
.quick-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.quick-link span { font-size: 24px; }

/* Data Table */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; min-width: 500px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table th { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; background: var(--gray-100); }
.data-table td { font-size: 14px; }

/* Employees Grid */
.employees-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.employee-card { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; }
.employee-card .avatar { width: 64px; height: 64px; background: var(--primary); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 16px; }
.employee-card .avatar.female { background: #fce7f3; color: #be185d; }
.employee-card h3 { font-size: 18px; margin-bottom: 4px; }
.employee-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 4px; }
.emp-stats { display: flex; justify-content: center; gap: 24px; margin: 16px 0; }
.emp-stats div { text-align: center; }
.emp-stats span { display: block; font-weight: 600; }
.rate { font-size: 13px; color: var(--primary-dark); }

/* Chart Bars */
.chart-bars { display: flex; justify-content: space-around; align-items: flex-end; height: 180px; padding: 20px 0; gap: 8px; }
.bar-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.bar { background: var(--primary); border-radius: 6px 6px 0 0; width: 100%; max-width: 36px; position: relative; min-height: 16px; }
.bar span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; }
.bar-item .label { margin-top: 8px; font-size: 11px; color: var(--gray-500); }

/* Top List */
.top-list { display: flex; flex-direction: column; gap: 10px; }
.top-item { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.top-item:last-child { border-bottom: none; }
.top-item .rank { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary-dark); border-radius: 50%; font-weight: 700; font-size: 13px; }
.top-item .info { flex: 1; }
.top-item .info h4 { font-size: 14px; margin-bottom: 2px; }
.top-item .info p { font-size: 12px; color: var(--gray-500); }
.top-item .value { font-weight: 600; font-size: 14px; }

/* Info Banner */
.info-banner { display: flex; align-items: center; gap: 16px; background: #fef3c7; border: 2px solid #f59e0b; border-radius: var(--radius); padding: 16px; flex-wrap: wrap; }
.info-icon { font-size: 24px; }
.info-content { flex: 1; min-width: 200px; }
.info-content h4 { font-size: 14px; margin-bottom: 4px; }
.info-content p { font-size: 13px; color: #92400e; margin: 0; }

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid.small { grid-template-columns: 1fr; }
}
