
/* Style Sheet Configuration File */
/* This file is used to configure the styles for the website. */



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


/* Body Styles */
/* This is the body of the website. */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.5;
}


/* Banner Styles */
/* This is the banner of the website. */
.banner {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Banner Image Styles */
/* This is the image that is displayed in the banner. */
.banner-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Main Content Styles */
/* This is the main content of the website. */
.main-content {
    background-color: #2d2d2d;
    min-height: calc(100vh - 300px);
    padding: 20px 20px;
}

/* Content Wrapper Styles */
/* This is the for the wrapper that contains Upcoming Events and Latest Announcements. */
.content-wrapper {
    max-width: 70%;
    min-width: 40%;
    margin: 0 auto;
}

/* Main Title Styles */
.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffc267;
    margin-bottom: 30px;
    border-radius: 15px;
    border-bottom: 5px Solid #4df34d;
    padding-bottom: 5px;
    text-align: center;
}

/* Content Section Styles */
.content-section {
    margin-bottom: 20px;
}

/* Side-by-side wrapper for Calendar and Announcements */
/* This is the wrapper that contains the calendar and announcements. */
.calendar-announcements-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: flex-start;
}


/* Side-by-side section styles */
/* This is the section that contains the calendar and announcements. */
.side-by-side-section {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
    display: flex;
    flex-direction: column;
    max-height: 750px; /* Match calendar-container max-height */
}

/* Section Title Styles */
.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffdb78;
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevent title from shrinking */
}

/* Ensure containers inside side-by-side-section can shrink */
.side-by-side-section > div {
    flex: 1;
    min-height: 0; /* Allows containers to shrink below content size */
}

/* Section Text Styles */
.section-text {
    font-size: 1.2rem;
    color: #e5e5e5;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Requirements List Styles */
.requirements-list {
    font-size: 1.1rem;
    color: #e5e5e5;
    line-height: 1.8;
    padding-left: 25px;
}

/* Requirements List Item Styles */
.requirements-list li {
    margin-bottom: 15px;
}

/* Sub-list Styles */
.sub-list {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 20px;
}

/* Sub-list Item Styles */
.sub-list li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        max-height: 250px;
    }

    .banner-image {
        max-height: 250px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    /* Stack calendar and announcements vertically on tablets and smaller */
    .calendar-announcements-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .side-by-side-section {
        height: auto; /* Allow height to adjust on smaller screens */
    }

}

/* Responsive Design for Smaller Screens */
@media (max-width: 480px) {
    .banner {
        max-height: 200px;
    }

    .banner-image {
        max-height: 200px;
    }

    .main-title {
        font-size: 2rem;
    }

    .section-text,
    .requirements-list {
        font-size: 1rem;
    }
}

/* Link Styles */
.nav-link {
    color: yellow;
}
.nav-link:hover {
    color: rgb(66, 217, 255);
}

/* Announcement Container Styles */
/* This is the container that contains the announcements. */
#announcements-container {
    width: 100%;
    max-width: 100%;
    max-height: 750px;
    height: 750px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background-color: #2a2a2a;
    border: 2px solid #4ade80;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
    /* Firefox Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: #4ade80 #1a1a1a;
}

/* Custom Scrollbar Styling for Webkit browsers (Chrome, Safari, Edge) */
/* This is the scrollbar that is displayed in the announcements container. */
#announcements-container::-webkit-scrollbar {
    width: 12px;
}

#announcements-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

#announcements-container::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

#announcements-container::-webkit-scrollbar-thumb:hover {
    background: #3bc96d;
}

/* Announcement Card  Styles */
.announcement-card {
    background-color: #3a3a3a;
    border-left: 4px solid #4ade80;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #4a4a4a;
}

.announcement-date {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.announcement-content {
    color: #e5e5e5;
    line-height: 1.6;
    font-size: 1rem;
}

.announcement-content code {
    background-color: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
}

.announcement-content strong {
    color: #ffffff;
    font-weight: bold;
}

.announcement-content em {
    color: #d0d0d0;
    font-style: italic;
}

@media (max-width: 768px) {
    #announcements-container {
        height: 400px;
        padding: 10px;
    }
    
    #calendar-container {
        height: 400px;
        padding: 10px;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    #announcements-container {
        height: 350px;
        padding: 8px;
    }
    
    #calendar-container {
        height: 350px;
        padding: 8px;
    }
}

/* Calendar Container Styles */
#calendar-container {
    width: 100%;
    min-width: 40%;
    max-width: 100%;
    height: 100%;
    max-height: 750px;
    padding: 10px;
    background-color: #2a2a2a;
    border: 2px solid #ffc267;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Allow container to shrink */
    overflow: hidden; /* Prevent calendar from escaping container, no scrollbar here */
}

/* FullCalendar Custom Styling */
#fullcalendar {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 250px; /* Ensure minimum visibility */
    background-color: #2a2a2a;
    color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* No scrollbar here, scroller handles it */
}

/* Ensure FullCalendar root element is constrained */
#fullcalendar .fc {
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* FullCalendar main content area */
#fullcalendar .fc-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

#fullcalendar .fc-body {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

/* FullCalendar view container */
.fc-view-harness {
    height: 100% !important;
    max-height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    /* Firefox Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: #ffc267 #1a1a1a;
    scrollbar-gutter: stable !important;
}

.fc-view-harness-active {
    height: 100% !important;
    max-height: 100% !important;
}

/* This is the main scrollable area in FullCalendar */
.fc-scroller {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
    /* Firefox Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: #ffc267 #1a1a1a;
}

/* Custom Scrollbar Styling for Webkit browsers (Chrome, Safari, Edge) */
.fc-scroller::-webkit-scrollbar {
    width: 12px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: #ffc267;
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
    background: #ffb84d;
}

.fc-scroller::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* FullCalendar Header */
.fc-header-toolbar {
    background-color: #3a3a3a;
    padding: clamp(4px, 1vh, 8px);
    border-radius: 4px;
    margin-bottom: clamp(5px, 1vh, 10px);
    flex-shrink: 0;
    min-height: 0;
    max-height: 60px; /* Limit header height */
}

.fc-button {
    background-color: #ffc267 !important;
    border-color: #ffc267 !important;
    color: #1a1a1a !important;
    font-weight: bold;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem) !important;
    padding: clamp(4px, 1vh, 8px) clamp(8px, 1.5vw, 12px) !important;
}

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

.fc-button:disabled {
    background-color: #4a4a4a !important;
    border-color: #4a4a4a !important;
    color: #888 !important;
    opacity: 0.5;
}

.fc-button-active {
    background-color: #4df34d !important;
    border-color: #4df34d !important;
    color: #1a1a1a !important;
}

.fc-toolbar-title {
    color: #ffdb78 !important;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.5rem) !important;
}

/* FullCalendar Table */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #4a4a4a !important;
}

.fc-col-header-cell {
    background-color: #4e4e4e !important;
    color: #ffdb78 !important;
    font-weight: bold;
    padding: clamp(5px, 1.5vh, 10px) 0;
    font-size: clamp(0.7rem, 1.5vw, 0.95rem) !important;
}

.fc-cell-shaded {
    background-color: #5a5a5a !important;
}    



.fc-daygrid-day {
    background-color: #2a2a2a !important;
}

/* Make calendar table scale to fit */
.fc-daygrid-body {
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    box-sizing: content-box !important;
}

.fc-daygrid-table {
   
    width: 100% !important;
    box-sizing: content-box !important;
    table-layout: auto !important; /* Prevent table from expanding beyond container */
}

.fc-daygrid-day-frame {
    height: 100% !important;
    max-height: 100% !important;
}

.fc-daygrid-day:hover {
    background-color: #333333 !important;
}

.fc-day-today {
    background-color: #856d39 !important;
}

.fc-daygrid-day-number {
    color: #e5e5e5 !important;
    font-size: clamp(0.7rem, 1.5vw, 0.95rem) !important;
    padding: clamp(2px, 0.5vh, 5px) !important;
}

.fc-day-today .fc-daygrid-day-number {
    color: #ffc267 !important;
    font-weight: bold;
}

/* FullCalendar Events */
.fc-event {
    border-radius: 4px !important;
    padding: clamp(1px, 0.3vh, 2px) clamp(2px, 0.5vw, 4px) !important;
    cursor: pointer;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem) !important;
    line-height: clamp(1.1, 1.5vh, 1.3) !important;
}

.fc-event-title {
    font-weight: 500;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem) !important;
}

.fc-event-time {
    font-weight: bold;
    font-size: clamp(0.6rem, 1.1vw, 0.8rem) !important;
}

/* FullCalendar List View */
.fc-list-event {
    background-color: #3a3a3a !important;
    border-left: 4px solid #ffc267 !important;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.fc-list-event:hover {
    background-color: #444444 !important;
}

.fc-list-event-title {
    color: #ffffff !important;
}

.fc-list-event-time {
    color: #ffc267 !important;
}

/* FullCalendar List View Scrollbar Styling */
.fc-list-view {
    height: 100% !important;
}

.fc-list-view .fc-view-harness {
    height: 100% !important;
    overflow: hidden !important;
}

.fc-list-view .fc-scroller {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important; /* Ensure padding is included in width */
    /* Firefox Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: #ffc267 #1a1a1a;
}

/* Custom Scrollbar Styling for Webkit browsers (Chrome, Safari, Edge) - List View */
.fc-list-view .fc-scroller::-webkit-scrollbar {
    width: 12px;
}

.fc-list-view .fc-scroller::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

.fc-list-view .fc-scroller::-webkit-scrollbar-thumb {
    background: #ffc267;
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

.fc-list-view .fc-scroller::-webkit-scrollbar-thumb:hover {
    background: #ffb84d;
}

.fc-list-view .fc-scroller::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* FullCalendar List View Day Headers */
/* These styles control the day-of-week headers in list view */
.fc-list-day {
    background-color: #3a3a3a !important;
    color: #ffdb78 !important;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 2px solid #4a4a4a;
    margin-top: 15px;
}

.fc-list-day:first-child {
    margin-top: 0;
}

.fc-list-day-text {
    color: #ffdb78 !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.fc-list-day-side {
    color: #ffdb78 !important;
}

/* Alternative: If FullCalendar uses table headers for list view days */
.fc-list-table .fc-col-header-cell {
    background-color: #3a3a3a !important;
    color: #ffdb78 !important;
    font-weight: bold;
    padding: 10px 0;
}

/* Event Tooltip/Popup Card Styles */
.event-tooltip {
    position: fixed;
    z-index: 10000;
    background-color: #3a3a3a;
    border: 2px solid #ffc267;
    border-radius: 8px;
    padding: 0;
    min-width: 300px;
    max-width: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: tooltipFadeIn 0.3s ease-in;
    cursor: default;
    overflow: hidden;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-header {
    background-color: #2a2a2a;
    padding: 15px;
    border-bottom: 2px solid #4a4a4a;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
}

.tooltip-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.tooltip-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.tooltip-status.event-active {
    background-color: #4ade80;
    color: #1a1a1a;
}

.tooltip-body {
    padding: 15px;
    padding-right: 5px;
    color: #e5e5e5;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 500px;
    /* Firefox Scrollbar Styling */
    scrollbar-width: auto;
    scrollbar-color: #ffc267 #2a2a2a;
}

/* Custom Scrollbar Styling for Webkit browsers (Chrome, Safari, Edge) */
.tooltip-body::-webkit-scrollbar {
    width: 14px;
}

.tooltip-body::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 7px;
    margin: 5px 0;
    border: 1px solid #3a3a3a;
}

.tooltip-body::-webkit-scrollbar-thumb {
    background: #ffc267;
    border-radius: 7px;
    border: 2px solid #2a2a2a;
    min-height: 30px;
}

.tooltip-body::-webkit-scrollbar-thumb:hover {
    background: #ffb84d;
}

.tooltip-body::-webkit-scrollbar-corner {
    background: #2a2a2a;
}

.tooltip-datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #4a4a4a;
}

.tooltip-date,
.tooltip-time {
    color: #e5e5e5;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tooltip-end {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tooltip-location {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding: 8px;
    background-color: #2a2a2a;
    border-radius: 6px;
}

.tooltip-content {
    color: #e5e5e5;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 12px;
    overflow-x: hidden;
    word-wrap: break-word;
    /* Firefox Scrollbar Styling - no scrollbar needed here, parent handles it */
}

/* Tooltip content doesn't need its own scrollbar - parent handles scrolling */

/* Tooltip content code styles */
.tooltip-content code {
    background-color: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
}

.tooltip-content strong {
    color: #ffffff;
    font-weight: bold;
}

.tooltip-content em {
    color: #d0d0d0;
    font-style: italic;
}

.tooltip-attendees {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #4a4a4a;
}

.tooltip-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #4a4a4a;
}

.tooltip-link a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffc267;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

    .tooltip-link a:hover {
        background-color: #ffb84d;
        color: #1a1a1a;
    }

/* Responsive tooltip */
@media (max-width: 768px) {
    .event-tooltip {
        min-width: 250px;
        max-width: 350px;
        max-height: 500px;
    }
    
    .tooltip-body {
        max-height: 400px;
    }
    
    .tooltip-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .event-tooltip {
        min-width: 200px;
        max-width: 280px;
        max-height: 400px;
    }
    
    .tooltip-body {
        max-height: 300px;
    }
    
    .tooltip-header {
        padding: 10px;
    }
    
    .tooltip-body {
        padding: 10px;
    }
    
    .tooltip-title {
        font-size: 0.9rem;
    }
}


/* Responsive Design for Calendar */
@media (max-width: 768px) {
    #calendar-container {
        padding: 10px;
    }
    
    .fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .fc-button {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .fc-toolbar-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    #calendar-container {
        height: 350px;
        padding: 8px;
    }
    
    .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc-button {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .fc-col-header-cell {
        font-size: 0.85rem;
        padding: 5px 0;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.9rem;
    }
}

