/**
 * BOOKING CALENDAR - UNIFIED STYLES
 * 
 * Table of Contents:
 * 1. Fonts
 * 2. Base styles
 * 3. Header & Layout
 * 4. Calendar Container & Grid
 * 5. Slots & Status Styles
 * 6. Drawer & Forms
 * 7. Date Picker
 * 8. Info Panel & Occupancy
 * 9. Overview Panel
 * 10. Mobile Responsive Styles
 * 11. Animations & Effects
 * 12. Utility Classes
 */

/***********************************
 * 1. FONTS
 ***********************************/
 @font-face {
    font-family: 'balboa';
    src: url("../fonts/Balboa/balboa-700.woff2") format("woff2"),
         url("../fonts/Balboa/balboa-700.woff") format("woff"),
         url("../fonts/Balboa/balboa-700.otf") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
}

@font-face {
    font-family: 'balboa-thin';
    src: url("../fonts/Balboa/balboa-300.woff2") format("woff2"),
         url("../fonts/Balboa/balboa-300.woff") format("woff"),
         url("../fonts/Balboa/balboa-300.otf") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
    letter-spacing: 0.7px;
}

@font-face {
    font-family: 'balboa bold';
    src: url("../fonts/Balboa/balboa-700.woff2") format("woff2");
    font-display: auto;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
}

@font-face {
    font-family: 'balboa bold 600';
    src: url("../fonts/Balboa/balboa-600.woff2") format("woff2"),
         url("../fonts/Balboa/balboa-600.woff") format("woff"),
         url("../fonts/Balboa/balboa-600.otf") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'Century-Gothic';
    src: url("../fonts/Century-Gothic/Century Gothic-N4.woff2") format("woff2"),
         url("../fonts/Century-Gothic/Century Gothic.ttf") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
}

/***********************************
 * 2. BASE STYLES
 ***********************************/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0c0c0b;
    font-family: Arial, sans-serif;
    color: #333;
}

h1 {
    margin: 0;
    font-family: 'balboa bold', sans-serif;
}

.room-tab, label, button {
    font-family: 'balboa-thin', Arial, sans-serif;
}

/***********************************
 * 3. HEADER & LAYOUT
 ***********************************/
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: #0c0c0b;
    font-family: 'balboa-thin', Arial, sans-serif;
    height: 120px;
}

header img {
    width: 200px;
    margin: 10px 0 0 0;
}

.header-brand {
    position: fixed;
    width: 100%;
    max-width: 700px;
    text-align: center;
    background: #0c0c0b;
    z-index: 500;
    padding: 20px 0;
}

main {
    position: relative;
}

/* Logout button */
.logout-btn {
    color: #ff8c8c;
    background-color: rgba(255, 0, 0, 0.35);
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
    opacity: 0.8;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 510;
    text-decoration: none;
}

.logout-btn:hover {
    opacity: 1;
}

/***********************************
 * 4. CALENDAR CONTAINER & GRID
 ***********************************/
.calendar-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid black;
}

/* Calendar Header */
.calendar-header {
    background: #ffffff;
    color: black;
    max-width: 700px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border: 1px solid black;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.calendar-header-infos {
    font-family: 'balboa-thin', Arial, sans-serif;
    position: fixed;
    background: white;
    width: 100%;
    max-width: 700px;
    height: 140px;
    padding: 30px 10px;
    border: 1px solid #000000;
    display: inline-block;
    z-index: 300;
}

.current-day {
    text-align: center;
    font-size: 2rem;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Room Tabs Navigation */
.room-tabs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
}

.room-tab {
    display: block;
    width: 100%;
    padding: 14px 28px;
    border: none;
    background-color: #f5f5f5;
    font-size: 18px;
    letter-spacing: 1px;
    color: #666;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.room-tab.active {
    background-color: #000000;
    color: #fff;
}

.room-tab:hover {
    background-color: #68a178;
    color: white;
}

.room-tab.active:hover {
    background-color: black;
    color: white;
}

/* Calendar Grid */
.calendar-grid {
    margin-top: 30px;
    margin-bottom: 70px;
    padding: 0 1rem;
}

.date-header {
    padding: 1rem 0;
    font-weight: bold;
    color: #333;
    display: none; /* Hide date headers by default */
}

.time-slot-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    border-bottom: 1px solid #eee;
}

.time-label {
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: left;
}

/* Calendar Footer */
.calendar-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    width: 100%;
    justify-content: center;
    margin: 0 auto;
    z-index: 100;
    border: 1px solid black;
}

.nav-arrow {
    background: none;
    border: 1px solid white;
    font-size: 1.5rem;
    color: #ffffff;
    background: #000000;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-arrow:hover {
    color: #ffffff;
    background: #68a178;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/***********************************
 * 5. SLOTS & STATUS STYLES
 ***********************************/
.slot {
    padding: 10px;
    border: 1px solid #ddd;
    min-height: 60px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.slot:hover {
    background: #f5f5f5;
}

.slot.occupied {
    background-color: var(--slot-color, #f2f2f2);
}

.slot.journalist {
    --slot-color: #e3f2fd;
}

.slot.retailer {
    --slot-color: #e8f5e9;
}

.slot.blocked {
    background: #ffd4d4;
    cursor: not-allowed;
}

/* Slot content styling */
.slot-info {
    font-size: 0.9rem;
}

.user-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.company {
    color: #666;
    font-size: 0.8rem;
}

.slot-sub-info {
    display: flex;
    font-size: 10px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

/* Note Indicator */
.note-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    color: #1a1a1a;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 15;
}

.note-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(255, 215, 0);
    color: #000000;
    padding: 8px;
    font-size: 12px;
    border-radius: 0 0 4px 4px;
    z-index: 5;
    height: 100%;
    word-break: break-word;
    text-transform: uppercase;
}

.info-note {
    position: absolute;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
}

/* Slot highlight effect */
@keyframes blinkBorder {
    0% { border-color: #ddd; }
    50% { border-color: #2196F3; }
    100% { border-color: #ddd; }
}

.slot-highlight {
    animation: blinkBorder 1s ease-in-out 3;
}

/***********************************
 * 6. DRAWER & FORMS
 ***********************************/
/* Drawer structure */
.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #1a1a1a;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.drawer.open {
    right: 0;
}

/* Modal overlay */
.drawer--modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.drawer.open.drawer--modal::before {
    opacity: 1;
    visibility: visible;
}

/* Drawer header */
.drawer-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    color: white;
}

.drawer-header h2 {
    margin: 0;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
}

.close-drawer {
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border: none;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
}

.close-drawer span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: all 0.3s ease;
}

.close-drawer span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.close-drawer span:nth-child(2) {
    opacity: 0;
}

.close-drawer span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Drawer content */
.drawer-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 70px);
    z-index: 5;
    position: sticky;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
}

/* Form styling */
.drawer-form {
    width: 100%;
}

.drawer-form .form-group {
    margin-bottom: 15px;
}

.drawer-form .form-group-parent {
    display: flex;
    gap: 20px;
}

.drawer-form .form-group-sub {
    flex: 1;
}

.drawer-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-form input,
.drawer-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.drawer-form input:focus,
.drawer-form select:focus {
    outline: none;
    border-color: #5e5e5e;
    background: #252525;
}

/* Button group */
.button-group {
    margin-top: 15px;
    display: grid;
    gap: 10px;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
}

.button-group button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-group button:hover {
    opacity: 0.9;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.block-btn {
    background-color: #f44336;
    color: white;
}

.free-btn {
    background-color: #ea8c2f;
    color: white;
}

.btn.move-btn {
    background: #2f7eea;
    color: #ffffff;
}

.btn.move-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

#noteSlotBtn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    width: 100%;
    margin: 10px 0;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #FFEB3B;
    color: #000000;
}

/* Move slot panel */
.move-slot-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    z-index: 1050;
}

.move-slot-panel-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.move-slot-panel-content {
    overflow-y: auto;
    height: 100%;
}

.available-slots-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.available-slot-item {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.available-slot-item:active {
    transform: scale(0.98);
    background-color: #f8f9fa;
}

.available-slot-item.selected {
    border-color: #0d6efd;
    background-color: #e9ecef;
}

.move-slot-panel-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#validateMoveBtn {
    color: #ffffff;
    background-color: #0d6efd;
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
}

#cancelMoveBtn {
    color: #ffffff;
    background-color: #9c9c9c;
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
}

#validateMoveBtn:hover,
#cancelMoveBtn:hover {
    opacity: 0.9;
}

/* Note panel */
.note-slot-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    z-index: 1050;
}

.note-slot-panel-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-slot-panel-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
}

.note-slot-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

#noteContent {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    resize: vertical;
}

#noteContent:focus {
    outline: none;
    border-color: #5e5e5e;
    background: #252525;
}

.note-slot-panel-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

#saveNoteBtn {
    background-color: #4CAF50;
    color: #ffffff;
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
}

#cancelNoteBtn {
    background-color: #9c9c9c;
    color: #ffffff;
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
}

#noteForm label {
    color: white;
    margin: 10px 0;
    display: inline-block;
}

/***********************************
 * 7. DATE PICKER
 ***********************************/
.date-selector {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    color: #007bff;
    font-weight: 500;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.date-selector:hover {
    background-color: #f8f9fa;
}

.date-selector:active {
    background-color: #e9ecef;
}

.date-picker-container {
    display: none;
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    transform-origin: bottom center;
    animation: datePickerShow 0.2s ease-out;
}

@keyframes datePickerShow {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    width: 100%;
    max-width: 200px;
}

/* iOS fix */
@supports (-webkit-touch-callout: none) {
    input[type="date"] {
        min-height: 44px;
    }
}

.calendar-footer .date-selector {
    grid-column: 2;
    border-radius: 4px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    display: none;
}

.calendar-footer .date-selector:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/***********************************
 * 8. INFO PANEL & OCCUPANCY
 ***********************************/
/* Burger Menu Button */
.infos-burger-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border: none;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
}

.infos-burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: all 0.3s ease;
}

.infos-burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.infos-burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.infos-burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Drawer Panel */
.infos-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #1a1a1a;
    color: #fff;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.infos-drawer.open {
    right: 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.infos-drawer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Info Block */
.infos-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
}

.infos-block h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    font-weight: 100;
    font-family: 'balboa-thin';
    line-height: 1.4rem;
}

.infos-stats {
    display: grid;
    gap: 1rem;
}

.infos-stats p {
    margin: 0;
    color: #ccc;
}

/* Days Grid */
.infos-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.infos-day-cell {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.infos-day-cell:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
/* Suite de la section 8. INFO PANEL & OCCUPANCY */
.infos-day-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.infos-day-name {
    color: #999;
    font-size: 0.9rem;
}

/* Occupancy Gauge */
.infos-occupancy-gauge {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.infos-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFC107);
    transition: width 0.3s ease;
}

.infos-occupancy-text {
    font-size: 0.9rem;
    color: #999;
}

.infos-room-label {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

/* Info Panel Buttons */
.overview-btn, .compact-overview-btn {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.35);
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'balboa-thin', Arial, sans-serif;
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.8;
}

.overview-btn:hover, .compact-overview-btn:hover {
    opacity: 0.8;
}

/***********************************
 * 9. OVERVIEW PANEL
 ***********************************/
.overview-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #d7d7d7;
    z-index: 2000;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

#overview-content {
    max-width: 815px;
    margin: 0 auto;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

/* Header */
.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    height: 75px;
    border-bottom: 1px solid #dddddd;
    background: black;
}

.overview-header h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    margin: 0 auto;
    font-family: 'balboa bold', sans-serif;
    text-align: center;
    background: black;
}

.close-overview {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border: none;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
}

.close-overview span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: all 0.3s ease;
}

.close-overview span:nth-child(2) {
    opacity: 0;
}

.close-overview span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.close-overview span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tabs */
.overview-tabs {
    padding: 10px 20px;
    border-bottom: 1px solid #dddddd;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.overview-tabs .compact-overview-btn {
    position: inherit;
    background: white;
    color: black;
    opacity: 0.5;
}

.overview-tabs .compact-overview-btn.active {
    position: inherit;
    background: black;
    color: white;
    opacity: 1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #666;
    background: #f5f5f5;
    text-transform: uppercase;
    width: 100%;
}

.tab-btn.active {
    background: #000000;
    font-weight: 500;
    color: #fff;
}

/* Grid Container */
.overview-grid-container {
    overflow: auto;
    padding: 0;
    background: #fff;
    border-radius: 5px;
    margin: 18px;
}

/* Grid Header */
.grid-header {
    display: grid;
    grid-template-columns: 65px repeat(6, 1fr);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 2px solid #dddddd;
}

.day-cell {
    padding: 10px;
    text-align: center;
    font-weight: 500;
    color: #333;
    border-left: 1px solid #dddddd;
}

/* Grid Body */
.grid-row {
    display: grid;
    grid-template-columns: 65px repeat(6, 1fr);
    border-bottom: 1px solid #dddddd;
}

.hour-cell {
    padding: 8px;
    text-align: right;
    color: #666;
    font-size: 0.9em;
    background: #fff;
    position: sticky;
    left: 0;
    border-right: 1px solid #dddddd;
}

.grid-header:nth-of-type(1) .hour-cell {
    font-size: 0.8em;
    padding: 6px;
}

.slot-cell {
    border-left: 1px solid #dddddd;
    transition: background-color 0.2s ease;
    height: 18px;
}

/* Slot States in Overview */
.slot-cell.free {
    background: #fff;
}

.slot-cell.blocked {
    background: #ffd4d4;
}

.slot-cell.journalist {
    background: #e3f2fd;
}

.slot-cell.retailer {
    background: #e8f5e9;
}

.slot-cell.note {
    background: #ffd700;
}

/* Hover Effects */
.slot-cell:hover {
    opacity: 0.8;
}

/* Tooltip customization */
.slot-cell[title] {
    position: relative;
}

/* Compact Schedule Table */
.schedule-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    color: #666;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    line-height: 20px;
    height: 20px;
}

.schedule-table thead th {
    background: #f8f9fa;
    padding: 4px;
    border: 1px solid #dee2e6;
    font-weight: normal;
    text-align: center;
    border-right: 1px solid #000000;
}

.schedule-table tbody td {
    border: 1px solid #dee2e6;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 20px;
    height: 20px;
    border-right: 1px solid #000000;
}

.schedule-table .time-slot {
    background: #f8f9fa;
    font-weight: 600;
    width: 100px;
}

.schedule-table .slot-cell {
    width: 120px;
    height: 20px;
    transition: all 0.2s ease;
}

.schedule-table .slot-cell.blocked {
    background: #ffd4d4;
    color: #6c757d;
}

.schedule-table .slot-cell.note {
    background: #ffd700;
    color: #6c757d;
}

.schedule-table .slot-cell.journalist {
    background: #cce5ff;
    color: #004085;
}

.schedule-table .slot-cell.retailer {
    background: #d4edda;
    color: #155724;
}

.schedule-table .slot-cell.free {
    background: #fff;
}

.schedule-table .slot-cell.free:hover {
    background: #f8f9fa;
}

.schedule-table tr:hover {
    background-color: #f8f9fa;
}

.schedule-table td.slot-cell:nth-child(even) {
    border-right: 1px solid #efefef;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #ff5252;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

/***********************************
 * 10. MOBILE RESPONSIVE STYLES
 ***********************************/
@media (max-width: 480px) {
    .drawer {
        width: 100%;
        right: -100%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .logout-btn {
        font-size: 10px;
        letter-spacing: 1px;
        height: 40px;
        line-height: 16px;
    }
}

@media (max-width: 460px) {
    .overview-btn, .compact-overview-btn {
        position: inherit;
        margin: 20px auto 0 auto;
        right: inherit;
        left: inherit;
        bottom: inherit;
        display: flex;
    }
    
    .grid-header {
        grid-template-columns: 45px repeat(6, 1fr);
    }
    
    .grid-row {
        grid-template-columns: 45px repeat(6, 1fr);
    }
}

@media (max-width: 420px) {
    .infos-days-grid {
        grid-template-columns: inherit;
    }
    
    .calendar-header-infos {
        height: 180px;
        margin-top: 18px;
    }
    
    .calendar-header {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .infos-days-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .available-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .move-slot-panel-footer button {
        flex: 0 1 200px;
    }
    
    .note-slot-panel {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        height: auto;
        max-height: 80vh;
        border-radius: 8px;
    }
    
    .note-slot-panel-footer button {
        flex: 0 1 200px;
    }
}

/***********************************
 * 11. ANIMATIONS & EFFECTS
 ***********************************/
/* Scrollbar Styling */
.infos-drawer::-webkit-scrollbar {
    width: 8px;
}

.infos-drawer::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.infos-drawer::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.infos-drawer::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Body state */
body.drawer-open {
    overflow: hidden;
}

/***********************************
 * 12. UTILITY CLASSES
 ***********************************/
.d-none {
    display: none;
}

.note-hide {
    display: none;
}

/* Force date headers to be hidden */
body .calendar-grid .date-header {
    display: none !important;
}








/* Styles pour le panneau de déplacement de slots */
.move-slot-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: Arial, sans-serif;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.move-slot-panel.d-none {
    display: none;
}

.move-slot-panel.active {
    animation: fadeIn 0.3s ease;
}

/* En-tête du panneau */
.move-slot-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.move-slot-panel-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

/* Contenu du panneau */
.move-slot-panel-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Pied du panneau */
.move-slot-panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

/* Bouton de fermeture */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 30px;
    height: 30px;
}

.btn-close:before, 
.btn-close:after {
    position: absolute;
    content: '';
    width: 20px;
    height: 2px;
    background-color: #777;
    top: 50%;
    left: 50%;
}

.btn-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:hover {
    color: #333;
}

.btn-close:hover:before,
.btn-close:hover:after {
    background-color: #333;
}

/* Conteneur des slots disponibles */
.available-slots-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* En-tête des dates */
.available-slots-date-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Conteneur des slots par date */
.available-slots-date-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Élément de slot disponible */
.available-slot-item {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.available-slot-item:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.available-slot-item.selected {
    background-color: #e3f2fd;
    border-color: #90caf9;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.time-range {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
}

/* Message quand aucun slot n'est disponible */
.no-slots-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Spinner de chargement */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Styles des boutons */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #cce5ff;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Notification après déplacement réussi */
.calendar-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    max-width: 300px;
    display: none;
    animation: slideInRight 0.3s ease forwards;
}

.calendar-notification.success {
    border-left: 4px solid #4caf50;
}

.calendar-notification.error {
    border-left: 4px solid #f44336;
}

/* Style pour le body quand le panneau est actif */
body.move-slot-active {
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media queries pour les écrans mobiles */
@media (max-width: 768px) {
    .move-slot-panel {
        padding: 15px;
    }
    
    .move-slot-panel-header h3 {
        font-size: 1.2rem;
    }
    
    .available-slot-item {
        padding: 12px;
    }
    
    .time-range {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}