/* ==========================================================================
   BARBERFLOW DESIGN SYSTEM (PREMIUM DARK GOLD THEME)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-darker: #08090c;
    --bg-dark: #0f1115;
    --bg-card: rgba(20, 24, 33, 0.7);
    --bg-card-hover: rgba(28, 33, 45, 0.85);
    --border-color: rgba(212, 175, 55, 0.15);
    --border-color-hover: rgba(212, 175, 55, 0.35);
    
    /* Accents (Gold / Amber) */
    --gold: #d4af37;
    --gold-hover: #f3cf55;
    --gold-dark: #aa851e;
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* UI States */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
    --glass-blur: blur(16px);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
}

[data-lucide] {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.btn [data-lucide],
.auth-tab [data-lucide],
.nav-link [data-lucide] {
    width: 1.05rem;
    height: 1.05rem;
}

.logo-icon [data-lucide] {
    width: 1.55rem;
    height: 1.55rem;
}

.stat-icon [data-lucide],
.service-icon-wrapper [data-lucide],
.empty-state [data-lucide] {
    width: 1.75rem;
    height: 1.75rem;
}

.customer-info-tag [data-lucide] {
    width: 0.8rem;
    height: 0.8rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ==========================================================================
   APP ROUTING & VISIBILITY
   ========================================================================== */
.view-route {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.view-route.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.view-route-flex {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.view-route-flex.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   AUTH SCREEN (LOGIN / REGISTER)
   ========================================================================== */
.auth-container {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

.auth-container.active {
    display: flex;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.auth-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.25);
}

/* Decorative Gold Top Border Glow */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-darker);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--gold-glow);
}

.auth-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 60%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: var(--gold);
    color: var(--bg-darker);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

/* Select user type toggles */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.type-option {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.type-option input {
    display: none;
}

.type-option.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    width: auto;
}

/* ==========================================================================
   APP MAIN SHELL (SIDEBAR & HEADER & MAIN)
   ========================================================================== */
.app-shell {
    min-height: 100vh;
    display: flex;
    background-color: var(--bg-darker);
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: var(--bg-dark);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-section .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-link i {
    font-size: 1.15rem;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    border-left: 3px solid var(--gold);
    padding-left:calc(1rem - 3px);
}

.user-profile-widget {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 10px var(--gold-glow);
}

.profile-info {
    flex-grow: 1;
    overflow: hidden;
}

.profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.logout-btn {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    color: var(--danger);
}

/* Main Content Container */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header-title h2 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   DASHBOARD STATS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-details h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-details .value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ==========================================================================
   BARBER DASHBOARD - CALENDAR & LIST VIEW
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 320px 1fr;
    }
}

/* Calendar Filter Card */
.calendar-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: fit-content;
}

.datepicker-wrapper {
    margin-top: 1rem;
}

/* Custom Calendar Layout */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day.active {
    background: var(--gold);
    color: var(--bg-darker);
    font-weight: 700;
}

.calendar-day.has-appointments {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 4px rgba(212, 175, 55, 0.1);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Agenda Panel */
.agenda-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.agenda-date-selected {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

/* Appointments List */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.appointment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-normal);
}

.appointment-item:hover {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.04);
}

.appointment-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    min-width: 75px;
    height: 70px;
    padding: 0.5rem;
    color: var(--gold);
}

.appointment-time .hour {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.appointment-time .date-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.appointment-details {
    flex-grow: 1;
    margin-left: 1.5rem;
}

.appointment-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-info-tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.customer-info-tag span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-badge.pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge.confirmed {
    background: var(--info-bg);
    color: var(--info);
}

.status-badge.completed {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.cancelled {
    background: var(--danger-bg);
    color: var(--danger);
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   SERVICES PANEL (BARBER VIEW - CREATE / EDIT)
   ========================================================================== */
.panel-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.service-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
}

.service-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-card-header .profile-avatar {
    width: 48px;
    height: 48px;
}

.client-info-list {
    display: grid;
    gap: 0.5rem;
}

/* ==========================================================================
   CLIENT BOOKING PANEL - ETAPAS / STEPS
   ========================================================================== */
.booking-steps-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-steps-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.booking-step-indicator {
    position: relative;
    z-index: 2;
    background: var(--bg-darker);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 700;
    transition: var(--transition-normal);
}

.booking-step-indicator.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-dark);
    box-shadow: 0 0 12px var(--gold-glow);
}

.booking-step-indicator.completed {
    border-color: var(--success);
    color: #fff;
    background: var(--success);
}

.booking-step-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.step-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

/* Barber Selection Grid */
.barbers-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.barber-selection-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.barber-selection-card:hover, .barber-selection-card.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.barber-selection-card .avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.barber-selection-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.barber-selection-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Service Selection Grid */
.services-selection-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-selection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.service-selection-item:hover, .service-selection-item.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.service-selection-item.selected {
    border-left: 4px solid var(--gold);
    padding-left: calc(1.25rem - 4px);
}

.service-selection-details {
    flex-grow: 1;
    margin-left: 1rem;
}

.service-selection-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

.service-selection-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Date & Time Slot Grid */
.booking-datetime-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .booking-datetime-grid {
        grid-template-columns: 320px 1fr;
    }
}

.time-slots-container h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.75rem;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.time-slot-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold);
}

.time-slot-btn.selected {
    background: var(--gold);
    color: var(--bg-darker);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.time-slot-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Confirmation Details Screen */
.confirm-details-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.confirm-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gold);
}

.confirm-label {
    color: var(--text-secondary);
}

.booking-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* ==========================================================================
   MODAL DIALOG (CREATE SERVICES / DETAILS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--danger);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

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

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

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

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 991px) {
    /* Hide sidebar, convert to navbar */
    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        bottom: 0;
        top: auto;
        left: 0;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(15, 17, 21, 0.95);
        backdrop-filter: var(--glass-blur);
        z-index: 100;
    }

    .brand-section {
        display: none; /* Hide brand name on mobile footer */
    }

    .nav-menu {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
        margin: 0;
    }

    .nav-link {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.75rem;
        border-left: none;
    }

    .nav-link.active {
        background: transparent;
        color: var(--gold);
        border-left: none;
        border-bottom: 2px solid var(--gold);
        padding-bottom: 0.35rem;
    }

    .user-profile-widget {
        display: none; /* In mobile, profile options can be simpler */
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem 5rem 1rem; /* Extra padding bottom for mobile footer */
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media(max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .appointment-time {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .appointment-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
