:root {
    --theme-primary: #043270;
}

/* Container & Layout */
#main.container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.outlook-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04), 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #edebe9;
    overflow: hidden;
}

.card-header {
    padding: 25px 35px;
    border-bottom: 1px solid #f3f2f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.outlook-icon-box {
    background: var(--theme-primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-title {
    margin: 0 !important;
    font-size: 20px;
    font-weight: 700;
    color: #323130;
}

/* CALENDAR WRAPPER */
.calendar-body {
    padding: 20px 35px 35px 35px;
}

#calendar {
    border-radius: 16px;
    border: 1px solid #edebe9;
    overflow: hidden;
    background: #ffffff;
}

.fc {
    border: none !important;
}

/* MONTH/AGENDA HEADERS */
.fc .fc-col-header-cell {
    background-color: var(--theme-primary) !important;
    padding: 10px 0 !important;
    border: none !important;
}

.fc .fc-col-header-cell-cushion {
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: uppercase;
    font-size: 16px;
    text-decoration: none !important;
}

.fc .fc-list-day-cushion {
    background-color: var(--theme-primary) !important;
    padding: 12px 15px !important;
}

.fc .fc-list-day-text, 
.fc .fc-list-day-side-text {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* NAVIGATION BUTTONS (SMALLER & 3px RADIUS) */
.fc .fc-button {
    background: #ffffff !important;
    border: 1px solid #d2d0ce !important;
    border-radius: 3px !important; 
    color: #323130 !important;
    padding: 4px 14px !important; 
    font-weight: 600 !important;
    font-size: 14px !important; 
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    
    /* ADDED: Spacing between buttons */
    margin-left: 4px !important; 
}

/* Remove margin from the very first button in a group to keep alignment clean */
.fc .fc-button-group > .fc-button:first-child {
    margin-left: 0 !important;
}

/* < > NAVIGATION ARROWS (LIGHT GREY BACKGROUND) */
.fc .fc-prev-button, 
.fc .fc-next-button {
    background: #f3f2f1 !important; 
}

.fc .fc-button:hover {
    background: #ebebeb !important;
    border-color: #a19f9d !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #ffffff !important;
}

.fc .fc-icon {
    color: var(--theme-primary) !important;
    font-size: 1.1em !important;
}

/* EVENT STYLING: CENTERED & SMALLER */
.fc-event {
    cursor: pointer !important;
    border-radius: 4px !important;
    border: none !important;
    font-size: 12px !important; /* Smaller text to fit multiple events */
}

.fc-list-event {
    cursor: pointer !important;
    border-radius: 4px !important;
    border: none !important;
    font-size: 18px !important; /* Smaller text to fit multiple events */
}

/* Month view specific centering */
.fc-daygrid-event {
    justify-content: center !important;
    padding: 0px 4px !important;
    margin-bottom: 2px !important;
}

.fc-event-title {
    text-align: center !important;
    width: 100%;
    display: block;
    font-weight: 500 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc .fc-daygrid-day-number {
    color: var(--theme-primary) !important;
    font-weight: 400;
    padding: 8px 12px !important;
    text-decoration: none !important;
}

.swal2-backdrop-show {
    backdrop-filter: blur(50px); /* This creates the "frosted glass" blur on the page behind the popup */
    background: rgba(4, 50, 112, 0.7) !important;
}

/* Modal and Spinner */
.modern-swal-popup { border-radius: 20px !important; }

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #f3f2f1;
    border-top: 3px solid var(--theme-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }