body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #0d1559;
    height: 48px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.custom-navbar {
    background-color: #0d1559;
}
/* Style for the triangle icon */
.triangle {
    display: inline-block;
    transition: transform 0.3s ease;
}
/* Centered Info button styling */
.info-button {
    margin: 0 auto;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #17a2b8; /* Bootstrap's info color */
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Add padding around the modal content */
.modal-content {
    padding: 20px;  /* Adds space around all sides of the content */
    border-radius: 8px;  /* Optional: rounded corners for a softer look */
}

/* Adjust button spacing */
.modal-body .btn-primary {
    margin-top: 10px;  /* Adds a small gap above the button */
}

/* Modal styling for centering */
.modal {
    display: none;  /* Hidden by default, shown as 'flex' when triggered */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.info-button:hover {
    background-color: #138496; /* Darker shade for hover effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Add padding to card headers in accordion */
.card-header h6 {
    font-weight: bold;
    cursor: pointer;
}

.quick-buttons .btn {
    margin: 2px; /* Reduced margin for closer button alignment */
    padding: 6px 12px; /* Smaller padding for compact size */
    font-size: 0.9rem; /* Adjusted font size for smaller screens */
}
#mainDeleteButton {
    margin-left: auto;  /* Pushes the button to the right within the flex container */
}
.navbar-brand, .nav-link {
    color: #c1fd35 !important;
    font-size: 1.2rem;
}

    .nav-link:hover {
        color: #9eeb34 !important;
    }

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.full-width-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.custom-container {
    margin-top: 20px;
}

.year-details-header {
    color: #0d1559;
    text-align: center;
    margin-bottom: 40px;
}

.class-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.plus-button {
    width: 30px;  /* Further reduced width for compact appearance */
    padding: 4px 0;  /* Minimized padding */
    font-size: 1.5rem;  /* Slightly larger font to emphasize the + symbol */
    text-align: center;
    display: inline-flex;
    justify-content: center;
}

.class-card {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .class-card h3, .class-card p {
        font-size: 38px;
        margin: 0;
    }

    .class-card h3 {
        color: #0d1559;
        text-align: left;
    }

    .class-card p {
        color: #c1fd35;
        text-align: right;
        text-shadow: 0 0 2.5px #0d1559;
    }

.reason-container {
    margin-top: 20px;
}

.reason-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    color: #0d1559;
    font-weight: bold;
}

.reason {
    color: #0d1559;
    margin: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
}

    .reason span {
        flex: 1;
        text-align: center;
    }

.reason-1 {
    opacity: 0.8;
}

.reason-2 {
    opacity: 0.6;
}

.reason-3 {
    opacity: 0.4;
}

.back-button-container {
    text-align: center;
    margin-top: 20px;
}

.back-button {
    background-color: #0d1559;
    border-color: #0d1559;
    color: #c1fd35 !important;
}

    .back-button:hover {
        background-color: #0a1147;
        border-color: #0a1147;
    }

.footer {
    text-align: center;
    padding: 20px;
    background-color: #007e33;
    color: #ffffff;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.btn-custom {
    border-radius: 10px;
    padding: 10px 10px;
    margin: 10px;
    text-decoration: none;
}

    .btn-custom:hover {
        background-color: #0b134f;
        color: #b7f334;
    }

.btn-primary {
    background-color: #0d1559 !important;
    border-color: #0d1559 !important;
    color: #c1fd35 !important;
}

    .btn-primary:hover {
        background-color: #0a1147 !important;
        border-color: #0a1147 !important;
    }

.full-screen-container {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    height: calc(100vh - 48px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-left: 1px solid #0d1559;
    border-top: 1px solid #0d1559;
}

.year-card {
    flex: 1 1 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50%;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    border-right: 1px solid #0d1559;
    border-bottom: 1px solid #0d1559;
}

    .year-card:nth-child(2n) {
        border-right: none;
    }

    .year-card:nth-child(n+3) {
        border-bottom: none;
    }

.year-card-alt {
    background-color: #f0f0f0;
}

.year-card h3 {
    color: #0d1559;
    font-size: 3.2vw;
    margin: 0;
}

.year-card p {
    color: #c1fd35 !important;
    font-size: 2.4vw;
    margin: 0;
    text-shadow: 0 0 5px #0d1559a1;
}

.year-btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    background-color: #0d1559;
    color: #c1fd35;
}

    .year-btn.selected {
        background-color: #c1fd35;
        color: #0d1559;
        border: 2px solid #0d1559;
    }

.class-btn {
    background-color: #e0e6f1;
    color: #0d1559;
    border: none;
    border-radius: 15px;
    flex: 1 1 calc(15 - 10px); /* Flex to fit 4 in a row */
    text-align: center;
    margin-right: 5px;
}

    .class-btn.selected {
        background-color: #c1fd35;
        color: #0d1559;
        border: 2px solid #0d1559;
    }

.year-btn {
    background-color: #0d1559;
    color: #c1fd35;
    margin-right: 5px;
    border: none;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    min-width: 0;
}

    .year-btn:last-child {
        margin-right: 0;
    }

.year-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: auto;
    white-space: nowrap;
    gap: 0px;
}

.class-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

h4 {
    margin-bottom: 5px;
}

.favorite-btn {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 10px;
    padding: 0;
}

.btn-success.favorite-btn {
    background-color: #28a745;
    color: white;
}

.blue {
    background-color: #0d1559 !important;
    color: #c1fd35 !important;
}

.btn-danger.favorite-btn {
    color: white;
}

.smol {
    font-size: 0.75rem;
}

@media (max-width: 992px) {
    .class-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

        .class-card h3, .class-card p {
            font-size: 28px;
        }

    .reason-labels {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .reason span {
        text-align: center;
    }

    .reason-container {
        margin-top: 10px;
    }

    .class-buttons {
        align-items: center;
    }

    .year-card h3 {
        font-size: 6vw;
    }

    .year-card p {
        font-size: 5vw;
    }

    .navbar-nav {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
    }

    .navbar-brand {
        align-self: center;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {
    .class-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

        .class-card h3, .class-card p {
            font-size: 32px;
        }

    .navbar-nav {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
    }

    .navbar-brand {
        align-self: center;
    }
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.quick-btn {
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 150px;
    text-align: center;
    border-radius: 15px;
    background-color: #0d1559;
    color: #c1fd35;
}

    .quick-btn:hover {
        background-color: #0a1147;
        color: #b7f334;
    }
