/* Outlook Calendar - Vue planning semaine */

/* ===== MODAL ===== */

.oc-modal .modal-dialog {
    max-width: 900px;
}

.oc-modal-header {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
}

.oc-modal-header .modal-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.oc-modal-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.oc-modal-header .btn-close-white:hover {
    opacity: 1;
}

.oc-modal-body {
    padding: 0;
    overflow: hidden;
}

.oc-modal-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid #e5e7eb;
}

/* ===== NAVIGATION ===== */

.oc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.oc-nav-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    min-width: 200px;
    text-align: center;
}

.oc-nav-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ===== CALENDAR HEADER ===== */

.oc-cal-header {
    display: grid;
    grid-template-columns: 52px repeat(5, 1fr);
    border-bottom: 2px solid #0078d4;
    background: #f0f4f8;
}

.oc-cal-corner {
    border-right: 1px solid #e5e7eb;
}

.oc-cal-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 0.25rem;
    color: #374151;
    border-right: 1px solid #e5e7eb;
}

.oc-cal-day-header:last-child {
    border-right: none;
}

.oc-cal-day-header.oc-today {
    color: #0078d4;
    background: #e8f2fc;
}

/* ===== CALENDAR SCROLL CONTAINER ===== */

.oc-cal-scroll {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.oc-cal-scroll::-webkit-scrollbar {
    width: 6px;
}

.oc-cal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.oc-cal-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.oc-cal-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ===== CALENDAR BODY ===== */

.oc-cal-body {
    display: grid;
    grid-template-columns: 52px repeat(5, 1fr);
    position: relative;
}

/* ===== TIME LABELS ===== */

.oc-cal-times {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    background: #fafbfc;
}

.oc-time-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 5px;
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
    transform: translateY(-0.35em);
}

/* ===== DAY COLUMNS ===== */

.oc-cal-day {
    position: relative;
    border-right: 1px solid #e5e7eb;
    user-select: none;
    -webkit-user-select: none;
}

.oc-cal-day:last-child {
    border-right: none;
}

.oc-cal-day.oc-today-col {
    background: rgba(0, 120, 212, 0.03);
}

/* ===== CELLS ===== */

.oc-cell {
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

/* Full-hour cells get a stronger border on top (aligned with hour label) */
.oc-cell.oc-hour {
    border-top: 1px solid #d1d5db;
}


.oc-cell:hover:not(.oc-past):not(.oc-selected) {
    background: rgba(16, 185, 129, 0.12);
}

.oc-cell.oc-past {
    background: #f9fafb;
    cursor: default;
    opacity: 0.5;
}

.oc-cell.oc-selected {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.35);
}

/* ===== EVENTS ===== */

.oc-event {
    position: absolute;
    border-radius: 3px;
    padding: 1px 4px;
    overflow: hidden;
    z-index: 2;
    font-size: 0.65rem;
    line-height: 1.2;
    cursor: default;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    box-sizing: border-box;
    opacity: 0.85;
}

.oc-event-time {
    display: block;
    font-size: 0.6rem;
    opacity: 0.85;
    white-space: nowrap;
}

.oc-event-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Busy */
.oc-event.oc-busy {
    background: #0078d4;
    color: #fff;
    border-left: 2px solid #005a9e;
}

/* Tentative */
.oc-event.oc-tentative {
    background: repeating-linear-gradient(
        -45deg,
        #a8d4f5,
        #a8d4f5 3px,
        #d0e8fa 3px,
        #d0e8fa 6px
    );
    color: #1a5276;
    border-left: 2px solid #5dade2;
}

/* Out of office */
.oc-event.oc-oof {
    background: #8b5cf6;
    color: #fff;
    border-left: 2px solid #6d28d9;
}

/* ===== NOW LINE ===== */

.oc-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    z-index: 5;
    pointer-events: none;
}

.oc-now-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

/* ===== TOOLTIP ===== */

.oc-tooltip {
    display: none;
    position: fixed;
    z-index: 10000;
    background: #1f2937;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.oc-tooltip strong {
    display: block;
    margin-bottom: 2px;
}

.oc-tooltip-time {
    color: #93c5fd;
    font-size: 0.75rem;
}

.oc-tooltip-status {
    color: #9ca3af;
    font-size: 0.7rem;
    margin-top: 2px;
}

/* ===== CALENDAR SELECTOR ===== */

.oc-calendar-select {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    padding: 0.2rem 2rem 0.2rem 0.5rem;
    border-radius: 4px;
    max-width: 280px;
    margin-left: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.oc-calendar-select option {
    color: #1f2937;
    background: #fff;
}

.oc-calendar-select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    outline: none;
    color: #fff;
}

.oc-target-calendar-wrapper {
    font-size: 0.85rem;
}

/* ===== BOUTON INJECTE ===== */

.oc-find-slot-btn {
    font-size: 0.85rem;
    white-space: nowrap;
}
