/* ===== Custom Fonts ===== */
@font-face {
    font-family: 'Fafers Handwriting';
    src: url('fonts/FAFERS.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== CSS Variables - Apoidea Color Scheme ===== */
:root {
    --primary: #2ECEC2;
    --primary-dark: #25B5AA;
    --primary-light: #5EDAD1;
    --accent: #E9A825;
    --accent-light: #F5C34D;
    --accent-dark: #D4941D;
    
    /* Rainbow colors from background */
    --rainbow-blue: #1D5B7F;
    --rainbow-lightblue: #A8D8E6;
    --rainbow-peach: #F5B7A5;
    --rainbow-olive: #8FA824;
    --rainbow-pink: #E91E8C;
    
    /* Status colors */
    --status-pending: #F5B7A5;
    --status-confirmed: #E9A825;
    --status-completed: #8FA824;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFA;
    --gray-100: #F0F4F4;
    --gray-200: #E2E8E8;
    --gray-300: #CBD5D5;
    --gray-400: #9CA8A8;
    --gray-500: #6B7A7A;
    --gray-600: #4A5656;
    --gray-700: #2D3636;
    --gray-800: #1A2020;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    color: var(--gray-700);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* ===== Login Screen ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

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

.login-logo {
    margin-bottom: 24px;
}

.login-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-container h1 {
    font-family: 'Fafers Handwriting', cursive;
    font-size: 2rem;
    font-weight: normal;
    color: var(--gray-800);
    margin-bottom: 28px;
}

.login-subtitle {
    color: var(--gray-500);
    margin-bottom: 32px;
}

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

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 206, 194, 0.15);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-400);
    transition: var(--transition);
}

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

.toggle-password .eye-icon {
    width: 22px;
    height: 22px;
}

.login-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    color: var(--rainbow-pink);
    font-size: 0.9rem;
    min-height: 24px;
}

/* ===== Main App ===== */
.main-app {
    min-height: 100vh;
    padding-bottom: 100px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Header ===== */
.app-header {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    width: 44px;
    height: auto;
}

.header-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.header-logo .header-title {
    font-family: 'Fafers Handwriting', cursive;
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

.header-btn {
    background: var(--gray-100);
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.header-btn svg {
    width: 22px;
    height: 22px;
    color: var(--gray-500);
}

.header-btn:hover {
    background: var(--gray-200);
}

.header-btn:hover svg {
    color: var(--primary);
}

.header-btn.logout-btn:hover svg {
    color: var(--rainbow-pink);
}

/* ===== Calendar Navigation ===== */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    margin: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btn {
    background: var(--gray-100);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

.nav-btn:hover {
    background: var(--primary-light);
}

.nav-btn:hover svg {
    color: var(--white);
}

.current-month {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    min-width: 180px;
    text-align: center;
}

.today-btn {
    background: var(--accent);
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.today-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ===== Calendar ===== */
.calendar-container {
    background: var(--white);
    margin: 0 16px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-header-cell {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-header-cell.weekend {
    color: var(--accent);
}

.calendar-day {
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.calendar-day:hover {
    background: var(--gray-50);
}

.calendar-day.other-month {
    background: var(--gray-50);
    opacity: 0.5;
}

.calendar-day.today {
    background: rgba(46, 206, 194, 0.1);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.weekend {
    background: rgba(233, 168, 37, 0.05);
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.day-bookings {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-indicator {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.booking-indicator.pending {
    background: var(--status-pending);
    color: var(--gray-700);
}

.booking-indicator.confirmed {
    background: var(--status-confirmed);
    color: var(--white);
}

.booking-indicator.completed {
    background: var(--status-completed);
    color: var(--white);
}

/* Event Colors */
.booking-indicator.event {
    font-style: normal;
}

.booking-indicator.event-blue {
    background: var(--rainbow-blue);
    color: var(--white);
}

.booking-indicator.event-green {
    background: #2ECC71;
    color: var(--white);
}

.booking-indicator.event-purple {
    background: #9B59B6;
    color: var(--white);
}

.booking-indicator.event-orange {
    background: #E67E22;
    color: var(--white);
}

.booking-indicator.event-pink {
    background: var(--rainbow-pink);
    color: var(--white);
}

.more-bookings {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
}

/* ===== Legend ===== */
.legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.pending {
    background: var(--status-pending);
}

.legend-dot.confirmed {
    background: var(--status-confirmed);
}

.legend-dot.completed {
    background: var(--status-completed);
}

.legend-dot.event {
    background: var(--rainbow-blue);
}

/* ===== Upcoming Section ===== */
.upcoming-section {
    background: var(--white);
    margin: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== Accordion Toggle ===== */
.accordion-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 12px;
    text-align: left;
    font-family: inherit;
}

.accordion-toggle h3 {
    margin-bottom: 0;
    flex: 1;
}

.active-count {
    background: var(--status-confirmed);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

.completed-count {
    background: var(--status-completed);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

.accordion-arrow {
    width: 24px;
    height: 24px;
    color: var(--gray-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-toggle.expanded .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 2000px;
    opacity: 1;
    margin-top: 16px;
}

.accordion-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.completed-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.completed-section h3::before {
    background: var(--status-completed);
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--status-pending);
}

.upcoming-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.upcoming-item.confirmed {
    border-left-color: var(--status-confirmed);
}

.upcoming-item.completed {
    border-left-color: var(--status-completed);
}

.upcoming-item.past-booking {
    opacity: 0.85;
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(245, 183, 165, 0.1) 100%);
}

.upcoming-item.past-booking .upcoming-date .day {
    color: var(--accent-dark);
}

.upcoming-date {
    text-align: center;
    min-width: 50px;
}

.upcoming-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.upcoming-date .month {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
}

.upcoming-date .weekday {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-info {
    flex: 1;
}

.upcoming-name {
    font-weight: 700;
    color: var(--gray-800);
}

.upcoming-time {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.upcoming-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge svg {
    width: 12px;
    height: 12px;
}

.badge.success {
    background: rgba(143, 168, 36, 0.15);
    color: var(--rainbow-olive);
}

.badge.warning {
    background: rgba(233, 168, 37, 0.15);
    color: var(--accent-dark);
}

.badge.danger {
    background: rgba(233, 30, 140, 0.15);
    color: var(--rainbow-pink);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== FAB ===== */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 50;
}

.fab svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(233, 168, 37, 0.4);
}

.fab.fab-open {
    transform: rotate(45deg);
    background: var(--gray-600);
}

.fab.fab-open:hover {
    transform: scale(1.1) rotate(45deg);
}

/* ===== FAB Menu ===== */
.fab-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.fab-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}

.fab-menu-items {
    position: absolute;
    bottom: 100px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideUpModal 0.3s ease;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: none;
    padding: 12px 20px 12px 12px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.fab-menu-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.fab-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-menu-icon svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.fab-menu-icon.booking-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.fab-menu-icon.event-icon {
    background: linear-gradient(135deg, var(--rainbow-blue) 0%, #155a7a 100%);
}

.fab-menu-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-700);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 600px) {
    .modal {
        align-items: center;
    }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: slideUpModal 0.3s ease;
}

@media (min-width: 600px) {
    .modal-content {
        border-radius: var(--radius-xl);
        margin: 20px;
    }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-800);
}

.close-btn {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.close-btn:hover {
    background: var(--rainbow-pink);
}

.close-btn:hover svg {
    color: var(--white);
}

/* ===== Booking Form ===== */
.booking-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 206, 194, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

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

/* Date with Weekday */
.date-with-weekday {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-with-weekday input {
    flex: 1;
}

.weekday-badge {
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius);
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.weekday-badge.weekend {
    background: var(--rainbow-pink);
}

.weekday-badge:empty {
    display: none;
}

.form-divider {
    margin: 28px 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.form-divider span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Color Picker ===== */
.color-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-dot {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-option input:checked + .color-dot {
    border-color: var(--gray-800);
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.color-dot.blue {
    background: var(--rainbow-blue);
}

.color-dot.green {
    background: #2ECC71;
}

.color-dot.purple {
    background: #9B59B6;
}

.color-dot.orange {
    background: #E67E22;
}

.color-dot.pink {
    background: var(--rainbow-pink);
}

/* ===== Toggle Switches ===== */
.status-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-item:hover {
    background: var(--gray-100);
}

.toggle-item input {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 13px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-item input:checked + .toggle-slider {
    background: var(--rainbow-olive);
}

.toggle-item input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

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

.toggle-label svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.toggle-item input:checked ~ .toggle-label {
    color: var(--gray-800);
}

.toggle-item input:checked ~ .toggle-label svg {
    color: var(--rainbow-olive);
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.btn-save {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-save svg {
    width: 20px;
    height: 20px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(233, 30, 140, 0.1);
    color: var(--rainbow-pink);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete svg {
    width: 20px;
    height: 20px;
}

.btn-delete:hover {
    background: var(--rainbow-pink);
    color: var(--white);
}

/* ===== Day Modal ===== */
.day-modal-content {
    max-height: 80vh;
}

.day-bookings-list {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-booking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--status-pending);
}

.day-booking-item:hover {
    background: var(--gray-100);
}

.day-booking-item.confirmed {
    border-left-color: var(--status-confirmed);
}

.day-booking-item.completed {
    border-left-color: var(--status-completed);
}

/* Event border colors in day modal */
.day-booking-item.event-border-blue {
    border-left-color: var(--rainbow-blue);
}

.day-booking-item.event-border-green {
    border-left-color: #2ECC71;
}

.day-booking-item.event-border-purple {
    border-left-color: #9B59B6;
}

.day-booking-item.event-border-orange {
    border-left-color: #E67E22;
}

.day-booking-item.event-border-pink {
    border-left-color: var(--rainbow-pink);
}

.day-booking-time {
    font-weight: 800;
    color: var(--primary);
    min-width: 90px;
}

.day-booking-info {
    flex: 1;
}

.day-booking-name {
    font-weight: 700;
    color: var(--gray-800);
}

.day-booking-type {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.btn-add-day {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    padding: 16px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-500);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-day svg {
    width: 20px;
    height: 20px;
}

.btn-add-day:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--white);
}

.btn-add-event {
    border-color: var(--rainbow-blue);
    color: var(--rainbow-blue);
}

.btn-add-event:hover {
    background: var(--rainbow-blue);
    border-color: var(--rainbow-blue);
    color: var(--white);
}

.day-add-buttons {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.day-add-buttons .btn-add-day {
    flex: 1;
    margin: 0;
    width: auto;
}

/* ===== Settings Modal ===== */
.settings-modal-content {
    max-height: 85vh;
}

.settings-form {
    padding: 24px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.settings-hint {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.5;
}

.settings-form .input-group {
    position: relative;
}

.settings-form .input-group input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.settings-form .input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 206, 194, 0.15);
}

.settings-form .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-400);
    transition: var(--transition);
}

.settings-form .toggle-password:hover {
    color: var(--gray-600);
}

.settings-form .toggle-password .eye-icon {
    width: 22px;
    height: 22px;
}

.settings-error {
    color: var(--rainbow-pink);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 24px;
    margin-top: 8px;
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.toast.success {
    background: var(--rainbow-olive);
}

.toast.error {
    background: var(--rainbow-pink);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Responsive ===== */
@media (max-width: 500px) {
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .booking-indicator {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .calendar-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .current-month {
        order: -1;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .header-logo .header-title {
        font-size: 0.95rem;
    }
    
    .upcoming-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upcoming-date {
        display: flex;
        gap: 8px;
        align-items: baseline;
    }
}

/* ===== PWA Install Prompt ===== */
.install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 150;
    animation: slideUpModal 0.3s ease;
}

.install-prompt-text {
    flex: 1;
}

.install-prompt-text strong {
    display: block;
    color: var(--gray-800);
}

.install-prompt-text span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.install-btn {
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.dismiss-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
}

