/* Custom design system for La Cabane d'Arès - Bassin d'Arcachon Vibe */

:root {
    --bg-primary: #f8f4eb; /* Soft beach sand */
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-glass: rgba(255, 255, 255, 0.65);
    --color-primary: #1b4353; /* Deep Atlantic Ocean blue */
    --color-primary-light: #4c7c93;
    --color-primary-glow: rgba(27, 67, 83, 0.15);
    --color-primary-dark: #0f2731;
    --color-accent: #f4a261; /* Dune of Pilat sand/sun sunset */
    --color-accent-light: #ffd166; /* Bright mid-day sun */
    --color-pine: #2a9d8f; /* Landes Pine Forest green */
    --color-terracotta: #e76f51; /* Traditional terracotta oyster-port tile */
    --color-terracotta-light: #fdf1ed;
    --text-main: #2c3539; /* Dark slate */
    --text-muted: #6f7c85;
    --border-color: rgba(27, 67, 83, 0.08);
    --border-focus: #4c7c93;
    
    --font-title: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 10px rgba(27, 67, 83, 0.04);
    --shadow-md: 0 10px 25px rgba(27, 67, 83, 0.06);
    --shadow-lg: 0 20px 45px rgba(27, 67, 83, 0.1);
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 20%, rgba(244, 162, 97, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(42, 157, 143, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(27, 67, 83, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--color-primary);
}

/* Helpers */
.hidden {
    display: none !important;
}

/* App Container */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Demo Mode Banner */
.demo-banner {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 10px;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.banner-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.banner-text {
    font-weight: 400;
    font-size: 0.95rem;
    flex: 1;
}
.banner-btn {
    background-color: white;
    color: var(--color-terracotta);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.banner-btn:hover {
    background-color: var(--color-terracotta-light);
    transform: translateY(-1px);
}

/* Header styling */
.app-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand-emoji {
    font-size: 2.5rem;
    animation: sway 4s ease-in-out infinite alternate;
    display: inline-block;
}
.brand-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}
.brand-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

/* Profile Section in Header */
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(27, 67, 83, 0.04);
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    border: 1px solid rgba(27, 67, 83, 0.05);
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}
.user-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-primary);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logout-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.logout-btn:hover {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
    border-color: rgba(231, 111, 81, 0.2);
}
.profile-skeleton {
    width: 200px;
    height: 40px;
    background: rgba(27, 67, 83, 0.04);
    border-radius: 20px;
}

/* Main Layout Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Cards Design */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Landing Page (Auth Section) */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: auto 0;
    animation: fadeIn 0.6s ease;
}
.auth-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 520px;
}
.auth-illustration {
    background: #e5dfd3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}
.auth-card:hover .poster-image {
    transform: scale(1.03);
}
.auth-form-container {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.badge {
    background-color: rgba(244, 162, 97, 0.12);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 18px;
}
.auth-form-container h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}
.auth-description {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 30px;
}

/* Login Buttons */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}
.google-btn {
    background-color: white;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: var(--shadow-sm);
}
.google-btn:hover {
    background-color: #fafafa;
    border-color: rgba(0,0,0,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.separator span {
    padding: 0 10px;
}

/* Mock Login Form */
.mock-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}
.form-group input {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: rgba(27, 67, 83, 0.02);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}
.form-group input:focus {
    outline: none;
    border-color: var(--border-focus);
    background-color: white;
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.avatar-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}
.avatar-option {
    cursor: pointer;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(27, 67, 83, 0.03);
    transition: var(--transition-smooth);
}
.avatar-option:hover {
    background-color: rgba(27, 67, 83, 0.08);
}
.avatar-option input {
    display: none;
}
.avatar-option img {
    width: 36px;
    height: 36px;
    transition: var(--transition-smooth);
}
.avatar-option input:checked + img {
    transform: scale(1.15);
}
.avatar-option:has(input:checked) {
    border-color: var(--color-accent);
    background-color: rgba(244, 162, 97, 0.08);
}

.submit-btn {
    background-color: var(--color-primary);
    color: white;
}
.submit-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--color-primary-glow);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    animation: fadeIn 0.6s ease;
}

/* Calendar Card */
.calendar-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 580px;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.nav-btn:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: scale(1.05);
}
.month-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 160px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    gap: 16px;
}
.legend-item {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.available {
    background-color: white;
    border: 1px solid var(--border-color);
}
.legend-dot.booked {
    background-color: var(--color-terracotta-light);
    border: 1px solid var(--color-terracotta);
}
.legend-dot.selected {
    background-color: var(--color-primary);
}

/* Weekday header in calendar */
.weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
}

/* Calendar Days Grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    flex: 1;
}

/* Day Cell Card */
.day-cell {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    min-height: 80px;
    position: relative;
    transition: var(--transition-smooth);
}
.day-cell:not(.empty-day):hover {
    background-color: white;
    box-shadow: var(--shadow-sm);
    border-color: rgba(27, 67, 83, 0.18);
}
.day-cell.empty-day {
    opacity: 0.25;
    background: transparent;
    border: 1px dashed var(--border-color);
    pointer-events: none;
}
.day-cell.today {
    border-color: var(--color-accent);
    background-color: rgba(244, 162, 97, 0.03);
}
.day-number {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.day-cell.today .day-number::after {
    content: "Aujourd'hui";
    font-size: 0.65rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(244, 162, 97, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Booking Slots inside Day Cell */
.day-slots-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.day-slot {
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

/* Free/Available Slot */
.day-slot.free {
    background-color: white;
    color: var(--color-primary);
    border-color: rgba(27, 67, 83, 0.06);
}
.day-slot.free:hover {
    background-color: var(--color-primary-glow);
    border-color: var(--color-primary-light);
    transform: translateY(-1px);
}

/* Selected Slot */
.day-slot.selected {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(27, 67, 83, 0.2);
}

/* Booked Slot */
.day-slot.booked {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
    border-color: rgba(231, 111, 81, 0.15);
    cursor: not-allowed;
    pointer-events: none;
}
.slot-badge-icon {
    font-size: 0.85rem;
}
.slot-user-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 4px;
}
.slot-user-initials {
    background-color: var(--color-terracotta);
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 4px;
}
.slot-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-left: 4px;
    font-weight: 500;
}
.slot-text.booked-by {
    font-weight: 600;
    max-width: 65px;
}

/* Sidebar Right side styling */
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Action Card / Booking Builder */
.action-card {
    padding: 24px;
    position: relative;
    z-index: 1;
}
.card-wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, rgba(27, 67, 83, 0.05) 0%, rgba(42, 157, 143, 0.04) 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: -1;
}
.action-card.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
}
.card-icon {
    font-size: 2.2rem;
    color: var(--color-primary-light);
    margin-bottom: 14px;
    opacity: 0.6;
}
.action-card h4 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-weight: 600;
}
.action-card p {
    font-size: 0.88rem;
    line-height: 1.4;
}

.card-badge {
    background-color: var(--color-primary-glow);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

#booking-builder-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#booking-builder-active h4 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

/* Slot Selection inside Builder Card */
.slot-select-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.builder-slot-button {
    background-color: rgba(27, 67, 83, 0.02);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.builder-slot-button:hover {
    background-color: white;
    border-color: var(--color-primary-light);
}
.builder-slot-button.active {
    background-color: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.1);
}
.builder-slot-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.05);
    pointer-events: none;
}
.builder-slot-button.disabled:hover {
    border-color: rgba(0,0,0,0.05);
}
.slot-icon {
    font-size: 1.5rem;
}
.slot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.slot-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
}
.slot-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.slot-status-indicator {
    background-color: rgba(27, 67, 83, 0.05);
    color: var(--color-primary-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}
.builder-slot-button.active .slot-status-indicator {
    background-color: var(--color-accent);
    color: white;
}
.builder-slot-button.disabled .slot-status-indicator {
    background-color: transparent;
    color: var(--color-terracotta);
    content: "Booked";
}

.action-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.action-btn:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--color-primary-glow);
}
.action-btn:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* List Cards (My Bookings & All Bookings) */
.list-card {
    padding: 20px 24px;
}
.card-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.card-header-simple h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.counter-badge {
    background-color: rgba(27, 67, 83, 0.05);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}
.bookings-list::-webkit-scrollbar {
    width: 4px;
}
.bookings-list::-webkit-scrollbar-track {
    background: transparent;
}
.bookings-list::-webkit-scrollbar-thumb {
    background-color: rgba(27, 67, 83, 0.1);
    border-radius: 4px;
}

.empty-list-message {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
    font-style: italic;
}

/* Booking list item */
.booking-item {
    background-color: rgba(27, 67, 83, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: fadeIn 0.4s ease;
}
.booking-item-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}
.booking-item-icon {
    font-size: 1.2rem;
}
.booking-item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.booking-item-date {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
}
.booking-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.booking-item-meta span {
    font-weight: 600;
}
.booking-user-thumbnail {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.cancel-booking-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.cancel-booking-btn:hover {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
}

/* Modal Overlay & Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 39, 49, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
.modal-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 550px;
    width: 100%;
    overflow: hidden;
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
    background-color: rgba(27, 67, 83, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.close-btn:hover {
    color: var(--color-terracotta);
}
.modal-body {
    padding: 24px;
    max-height: 480px;
    overflow-y: auto;
}
.modal-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.config-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}
.config-steps li {
    font-size: 0.9rem;
    line-height: 1.5;
}
.config-steps code {
    background-color: rgba(27, 67, 83, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-terracotta);
}
.config-steps pre {
    background-color: #f1f3f5;
    border-left: 3px solid var(--color-primary);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 8px 0;
}
.config-steps pre code {
    background: transparent;
    color: var(--text-main);
    padding: 0;
}

/* Toast System */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-primary-dark);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    font-size: 0.92rem;
    font-weight: 500;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.success {
    background-color: var(--color-pine);
}
.toast.error {
    background-color: var(--color-terracotta);
}

/* Footer styling */
.app-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes sway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

/* Responsive Grid Adapters */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .auth-grid {
        grid-template-columns: 1fr;
    }
    .auth-illustration {
        display: none;
    }
    .auth-form-container {
        padding: 30px 20px;
    }
}
@media (max-width: 600px) {
    .days-grid {
        gap: 6px;
    }
    .day-cell {
        min-height: 70px;
        padding: 4px;
    }
    .day-number {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    .day-slot {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    .slot-text {
        display: none;
    }
    .slot-user-avatar, .slot-user-initials {
        margin-left: 0;
    }
    .app-header {
        padding: 12px 16px;
        justify-content: center;
        text-align: center;
    }
    .brand {
        flex-direction: column;
        gap: 8px;
    }
    .user-profile-section {
        width: 100%;
        justify-content: center;
    }
}

/* Custom styling for range bookings and emojis */
.avatar-emoji {
    font-size: 2.2rem;
    line-height: 1;
    display: inline-block;
    transition: var(--transition-smooth);
}
.avatar-option:hover .avatar-emoji {
    transform: scale(1.15);
}
.avatar-option:has(input:checked) .avatar-emoji {
    transform: scale(1.2) rotate(5deg);
}

.builder-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--color-terracotta);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}
.clear-btn:hover {
    background-color: var(--color-terracotta-light);
}

.range-info-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}

.range-card-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(244, 162, 97, 0.06);
    border: 1px solid rgba(244, 162, 97, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}
.range-card-detail i {
    font-size: 1.5rem;
    color: var(--color-accent);
}
.range-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    font-weight: 700;
}
.range-main-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-primary);
}

.conflict-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--color-terracotta-light);
    border: 1px solid rgba(231, 111, 81, 0.2);
    color: var(--color-terracotta);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}
.conflict-alert i {
    margin-top: 2px;
    font-size: 1.1rem;
}

/* Day cell highlight for selected period */
.day-cell.range-selected {
    background-color: rgba(244, 162, 97, 0.08) !important;
    border-color: var(--color-accent) !important;
}
.day-cell.range-start {
    border-left: 3px solid var(--color-accent) !important;
    background-color: rgba(244, 162, 97, 0.12) !important;
}
.day-cell.range-end {
    border-right: 3px solid var(--color-accent) !important;
    background-color: rgba(244, 162, 97, 0.12) !important;
}

.slot-user-avatar-emoji {
    font-size: 1.15rem;
    margin-left: 4px;
    display: inline-block;
}

