/* ==========================================================
   CALENDAR
   ========================================================== */

#calendar {

    height: calc(100vh - 95px);

    background: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: var(--shadow);

}


/* ==========================================================
   FULLCALENDAR
   ========================================================== */

.fc {

    height: 100%;

    font-size: 14px;

}


/* ==========================================================
   TOOLBAR
   ========================================================== */

.fc-toolbar {

    padding: 15px;

    margin-bottom: 0 !important;

    border-bottom: 1px solid var(--border);

}

.fc-toolbar-title {

    font-size: 22px;

    font-weight: 600;

}


/* ==========================================================
   BUTTONS
   ========================================================== */

.fc .fc-button {

    background: var(--primary);

    border: none;

    border-radius: 8px;

    padding: 6px 14px;

}

.fc .fc-button:hover {

    background: var(--primary-hover);

}

.fc .fc-button:focus {

    box-shadow: none;

}

.fc .fc-button-active {

    background: var(--primary-hover) !important;

}


/* ==========================================================
   RESOURCE AREA
   ========================================================== */

.fc-datagrid {

    background: #fafafa;

}

.fc-datagrid-cell {

    height: 60px;

    vertical-align: middle;

    font-weight: 600;

}


/* ==========================================================
   TIMELINE
   ========================================================== */

.fc-timeline-slot {

    height: 60px;

}

.fc-scrollgrid {

    border: none !important;

}

.fc-theme-standard td,
.fc-theme-standard th {

    border-color: #e9ecef;

}


/* ==========================================================
   NOW LINE
   ========================================================== */

.fc .fc-timeline-now-indicator-line {

    border-color: #dc2626;

    border-width: 2px;

}

.fc .fc-timeline-now-indicator-arrow {

    border-color: #dc2626;

}


/* ==========================================================
   EVENTS
   ========================================================== */

.fc-event {

    border: none;

    border-radius: 8px;

    padding: 4px 6px;

    cursor: pointer;

    transition: .15s;

    font-size: 13px;

    box-shadow: 0 1px 5px rgba(0,0,0,.15);

}

.fc-event:hover {

    transform: scale(1.02);

}


/* ==========================================================
   EVENT TITLE
   ========================================================== */

.fc-event-title {

    font-weight: 600;

}

.fc-event-time {

    font-size: 11px;

    opacity: .85;

}


/* ==========================================================
   PRIORITY COLORS
   ========================================================== */

.priority-low {

    background: #94a3b8 !important;

}

.priority-medium {

    background: #3b82f6 !important;

}

.priority-high {

    background: #f59e0b !important;

}

.priority-critical {

    background: #dc2626 !important;

}


/* ==========================================================
   COMPLETED
   ========================================================== */

.task-completed {

    opacity: .55;

    text-decoration: line-through;

}


/* ==========================================================
   LOCKED
   ========================================================== */

.task-locked {

    cursor: not-allowed !important;

    opacity: .75;

}


/* ==========================================================
   DRAG
   ========================================================== */

.fc-event-dragging {

    opacity: .75;

}

.fc-highlight {

    background: rgba(37,99,235,.12);

}


/* ==========================================================
   WEEKEND
   ========================================================== */

.fc-day-sat,
.fc-day-sun {

    background: #fcfcfc;

}


/* ==========================================================
   SELECTION
   ========================================================== */

.fc-highlight {

    background: rgba(37,99,235,.18);

}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

.fc-scroller::-webkit-scrollbar {

    width: 8px;

    height: 8px;

}

.fc-scroller::-webkit-scrollbar-thumb {

    background: #cfd4dc;

    border-radius: 10px;

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {

    .fc-toolbar {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

}