/* Logo */
.logo {
    height: 60px;
    width: auto;
    min-width: 60px;
    margin-right: 20px;
    display: inline-block;
    vertical-align: middle;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
}

header h1 {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minimalist & Clean Fitness Color Palette */
    --primary: #4A90E2;         /* Steel Blue - buttons */
    --primary-dark: #357ABD;
    --primary-light: #7AB8F0;
    --secondary: #39FF14;      /* Neon Green - accents */
    --secondary-dark: #2BC90B;
    --accent: #5EF12F;
    --success: #39FF14;        /* Neon Green - success states */
    --warning: #FDCB6E;        /* Soft Yellow */
    --danger: #E74C3C;         /* Flat Red */
    --dark: #1A1A1A;          /* Jet Black - text, headers */
    --light: #F3F4F6;         /* Light Gray - cards */
    --white: #FFFFFF;         /* Pure White - backgrounds */
    --text: #1A1A1A;          /* Jet Black */
    --text-light: #6C757D;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', system-ui, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* Background Pattern - Minimalist Theme */
body {
    font-family: var(--font-primary);
    background: var(--white);
    background-image: 
        linear-gradient(rgba(57, 255, 20, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    padding: 20px;
    color: var(--text);
}

/* App Container */
.app {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Header
   ======================================== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 75%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1::before {
    content: '💪';
    font-size: 1.5em;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Navigation Buttons */
.nav-btn {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary-dark);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-btn:active {
    transform: translateY(0);
    background: var(--primary);
}

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

.logout-btn:hover {
    background: #C0392B;
    border-color: #A93226;
    color: var(--white);
}

.auth-btn {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
    color: var(--primary);
}

.auth-btn:hover {
    background: rgba(74, 144, 226, 0.25);
    border-color: rgba(74, 144, 226, 0.5);
    color: var(--primary-dark);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    position: relative;
}

.profile-btn:hover {
    background: var(--primary-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    z-index: 1000;
    margin-top: 4px;
}

.dropdown-content.active {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.dropdown-item:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 600;
    color: var(--text-light);
    background: var(--light);
    cursor: default;
}

.dropdown-item:not(:first-child):hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Calendar Navigation Buttons - distinct styling */
.calendar-nav-btn {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 140px;
    text-shadow: none;
}

.calendar-nav-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.calendar-nav-btn:active {
    transform: translateY(0);
    background: var(--primary-dark);
    color: var(--white);
}

.calendar-nav-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--light);
    border-color: #ccc;
    color: #666;
}

.user-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.user-credits {
    background: rgba(0, 180, 216, 0.2);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: var(--secondary);
    margin-left: 10px;
    backdrop-filter: blur(5px);
}

.user-credits:empty {
    display: none;
}

/* ========================================
   Main Content
   ======================================== */
main {
    padding: 30px;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.view h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

/* ========================================
   Modals
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--danger);
    background: rgba(225, 112, 85, 0.1);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder {
    color: #b2bec3;
}

/* Read-only input styling */
.form-group input[readonly] {
    background: var(--light);
    border-color: #ccc;
    cursor: not-allowed;
    color: var(--text);
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
    transform: scale(1.2);
}

.checkbox-item label {
    display: inline;
    margin: 0;
    cursor: pointer;
    color: var(--text);
    font-weight: normal;
}

.checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.checkbox-item input[type="checkbox"]:hover {
    filter: brightness(0.9);
}

/* All rooms checkbox styling */
.all-rooms-checkbox {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.all-rooms-checkbox label {
    font-weight: 600 !important;
    color: var(--primary) !important;
}

/* Indeterminate checkbox styling */
input[type="checkbox"]:indeterminate {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Modal actions */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    width: auto;
    flex: 1;
}

/* Delete button */
.btn-delete {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a03226 100%);
    box-shadow: var(--shadow);
}

/* Delete image button */
.delete-image-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    margin-top: 8px;
    color: var(--danger);
    transition: all 0.3s ease;
    display: inline-block;
}

.delete-image-btn:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.delete-image-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

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

/* Secondary Button */
.btn-secondary {
    width: auto;
    padding: 10px 20px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-left: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--text);
    color: var(--primary);
}

/* Success and Error Messages */
.error-message {
    color: var(--danger);
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    padding: 8px;
    background: rgba(225, 112, 85, 0.1);
    border-radius: var(--radius-sm);
}

.success-message {
    color: var(--success);
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    padding: 8px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: var(--radius-sm);
}

/* ========================================
   Calendar Header
   ======================================== */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.view-mode-selector {
    display: flex;
    gap: 5px;
    background: var(--white);
    padding: 5px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid #dee2e6;
}

.view-mode-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.view-mode-btn:hover {
    background: var(--light);
    color: var(--primary);
}

.view-mode-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.period-display {
    font-weight: 600;
    color: var(--text);
    min-width: 200px;
    text-align: center;
    padding: 8px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
}

/* Calendar Container */
.calendar-container {
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-top: none;
}

.calendar-content {
    padding: 20px;
    overflow: hidden;
}

/* ========================================
   Room List
   ======================================== */
.room-list {
    margin-bottom: 30px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #dee2e6;
}

.room-list h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-list h3::before {
    content: '';
}

#rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.room-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.room-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.room-card h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.room-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.room-card .capacity {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-card .capacity::before {
    content: '👥';
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    display: block;
}

/* ========================================
   My Bookings
   ======================================== */
#my-bookings-container {
    display: grid;
    gap: 20px;
}

.booking-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.booking-card .booking-room {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.booking-card .booking-times {
    color: var(--text);
    font-size: 0.95rem;
}

.booking-card .booking-date {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.booking-card .booking-actions {
    display: flex;
    gap: 10px;
}

.booking-card .btn-delete {
    background: var(--danger);
    padding: 8px 15px;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.booking-card .btn-delete:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ========================================
   Admin Area
   ======================================== */
.admin-btn {
    background: linear-gradient(135deg, #ffd166 0%, #ffb347 100%);
    color: var(--dark);
    border: none;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #ffcd07 0%, #ffb347 100%);
}

#admin-view {
    padding: 20px 25px;
}

#admin-view h2 {
    color: var(--primary);
    margin-bottom: 25px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #dee2e6;
    flex-wrap: wrap;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.admin-tab:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.admin-tab.active {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-panel {
    display: none;
    padding: 15px 0;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-panel h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Admin Table */
.admin-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: #dee2e6;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.admin-table-header {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
}

.admin-table-header > div {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.admin-table-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
}

.admin-table-row > div {
    background: var(--white);
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.admin-table-row:nth-child(even) > div {
    background: #f8f9fa;
}

.admin-table-row:hover > div {
    background: rgba(255, 107, 53, 0.05);
}

.admin-table-cell {
    padding: 6px 8px;
    font-size: 0.85rem;
}

.admin-table-cell.header {
    font-weight: 600;
}

.admin-table-cell .btn-view,
.admin-table-cell .btn-edit,
.admin-table-cell .btn-delete {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-table-cell .btn-view {
    background: var(--secondary);
    color: var(--white);
}

.admin-table-cell .btn-view:hover {
    background: var(--secondary-dark);
}

.admin-table-cell .btn-edit {
    background: var(--warning);
    color: var(--dark);
}

.admin-table-cell .btn-edit:hover {
    background: #fab131;
}

.admin-table-cell .btn-delete {
    background: var(--danger);
    color: var(--white);
}

.admin-table-cell .btn-delete:hover {
    background: #c74838;
}

/* Specific column widths for users table */
#admin-users .admin-table-header,
#admin-users .admin-table-row {
    grid-template-columns: 50px 120px 150px 80px 70px 100px;
}

#admin-users .admin-table-cell {
    font-size: 0.85rem;
}

#admin-users .admin-table-cell:last-child {
    justify-content: center;
}

/* ========================================
   Welcome View
   ======================================== */
#welcome-view {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

#welcome-view h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

#welcome-view p {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

#welcome-view p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

#welcome-view strong {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   FullCalendar Custom Styles
   ======================================== */
#fullcalendar {
    width: 100%;
    max-width: 100%;
}

/* Header customization */
.fc .fc-toolbar {
    display: none !important;
}

/* General styling */
.fc {
    font-family: var(--font-primary);
    font-size: 14px;
}

/* Table header */
.fc .fc-col-header-cell-cushion {
    color: var(--white);
    font-weight: 600;
    background: var(--primary);
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Today's cell */
.fc .fc-today {
    background: rgba(255, 107, 53, 0.15) !important;
    border: 2px solid var(--primary) !important;
}

/* Time slots */
.fc .fc-timegrid-slot-label-cushion {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Events (bookings) */
.fc .fc-event {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Recurring bookings - different color (violet/purple) */
.fc .fc-event.recurring-booking {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-left: 3px solid #8e44ad;
}

.fc .fc-event.recurring-booking:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* My own bookings - green */
.fc .fc-event.my-booking {
    background: linear-gradient(135deg, var(--success) 0%, #28a745 100%);
    border-left: 3px solid var(--success);
}

/* Admin bookings - blue */
.fc .fc-event.admin-booking {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-left: 3px solid var(--secondary);
}

/* Other users' bookings - light blue */
.fc .fc-event.other-user-booking {
    background: linear-gradient(135deg, var(--accent) 0%, #a0e0e0 100%);
    border-left: 3px solid var(--accent);
}

/* Recurring bookings override for user types */
.fc .fc-event.my-booking.recurring-booking {
    background: linear-gradient(135deg, #20c997 0%, #1baa7a 100%);
    border-left: 3px solid #20c997;
}

.fc .fc-event.admin-booking.recurring-booking {
    background: linear-gradient(135deg, #0096c7 0%, #0077b6 100%);
    border-left: 3px solid #0077b6;
}

.fc .fc-event.other-user-booking.recurring-booking {
    background: linear-gradient(135deg, #80c8d8 0%, #6ba8c8 100%);
    border-left: 3px solid #6ba8c8;
}

/* Event text */
.fc .fc-event-title {
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Recurring event text */
.fc .fc-event.recurring-booking .fc-event-title {
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Past dates */
.fc .fc-past {
    background: rgba(200, 200, 200, 0.3);
    opacity: 0.5;
}

/* Time grid lines */
.fc .fc-timegrid-divider {
    border-right: 1px solid #dee2e6;
}

/* Cell borders */
.fc .fc-timegrid-slot,
.fc .fc-daygrid-day {
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.fc .fc-timegrid-slot:hover,
.fc .fc-daygrid-day:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Day numbers in month view */
.fc .fc-daygrid-day-number {
    color: var(--text);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 50%;
    background: var(--white);
    display: inline-block;
    min-width: 24px;
    text-align: center;
}

.fc .fc-daygrid-day.fc-today .fc-daygrid-day-number {
    background: var(--primary);
    color: var(--white);
}

/* Weekday headers */
.fc .fc-day-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.fc .fc-day-header .fc-col-header-cell-cushion {
    color: var(--primary);
    font-weight: 600;
    padding: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Selectable cells */
.fc .fc-selectable {
    cursor: pointer;
}

.fc .fc-highlight {
    background: rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-sm);
}

/* ========================================
   Year View Custom Styles
   ======================================== */
.calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.year-month-cell {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.year-month-cell:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.year-month-name {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.year-booking-count {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

/* ========================================
   Tabulator Table Styles
   ======================================== */
.tabulator {
    font-family: var(--font-primary);
    font-size: 14px;
}

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

.tabulator .tabulator-header .tabulator-col {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.tabulator .tabulator-header .tabulator-col:hover {
    background: var(--primary-dark);
}

.tabulator .tabulator-row {
    border-bottom: 1px solid #dee2e6;
}

.tabulator .tabulator-row.tabulator-row-even {
    background: #f8f9fa;
}

.tabulator .tabulator-row.tabulator-row-even:hover {
    background: rgba(255, 107, 53, 0.05);
}

.tabulator .tabulator-row.tabulator-row-odd:hover {
    background: rgba(255, 107, 53, 0.05);
}

.tabulator .tabulator-footer {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

.tabulator-page {
    color: var(--text);
}

.tabulator-page.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tabulator-page:not(.active):hover {
    background: var(--light);
    border-color: #dee2e6;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .calendar-controls {
        flex-direction: column;
        gap: 15px;
    }

    .period-display {
        min-width: auto;
    }

    .room-list {
        padding: 15px;
    }

    #rooms-container {
        grid-template-columns: 1fr;
    }

    .booking-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booking-card .booking-actions {
        justify-content: center;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .admin-tab {
        border-radius: var(--radius-sm);
        border-bottom: none;
    }

    .admin-tab.active {
        border-radius: var(--radius-sm);
    }

    #admin-view {
        padding: 15px;
    }

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

/* ========================================
   Utility Classes
   ======================================== */
.text-primary {
    color: var(--primary);
}

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

.bg-primary {
    background: var(--primary);
}

.bg-secondary {
    background: var(--secondary);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-state::before {
    content: '';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Image preview */
.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

/* ========================================
   Impressum
   ======================================== */
#impressum-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.impressum-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.impressum-content h2,
.impressum-content h3,
.impressum-content h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.impressum-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.impressum-content strong {
    color: var(--dark);
}

.impressum-content em {
    font-style: italic;
    color: var(--text-light);
}
