
:root {
    --theme-primary-color: #8c6415; /* Gold / mustard */
    --link-color: #185abc; /* Blue */
    --text-dark: #1a1a1a; /* Dark black / charcoal */
    --warning-color: #cc0000; /* Red */
    --box-shadow-1: 0 0 4px 2px rgba(0, 0, 0, 0.05); /* Light shadow (soft black) */
    --color-primary-action: #0056b3; /* Bright blue */
    --color-danger: #dc3545; /* Danger red */
    --color-danger-hover: #a71d2a; /* Dark red / maroon */
    --color-surface: white; /* white */
    --text-dark-green: #1f2d1f; /* dark green text */
    --color-emerald-green: #45c75b; /* emerald green */
}

.dashboard {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f7f8fa;
    line-height: 1.6;
    overflow-y: auto;
    height: 100%;
}

a {
    color: var(--link-color);
}

.page-welcome-section {
    color: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 20px auto;
    width: 100%;
}

.page-title {
    font-weight: bold;
    font-size: 28px;
    margin: 0;
    color: var(--text-dark);
}

.page-desc {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

    .page-desc a {
        color: var(--link-color);
        text-decoration: none;
    }

widget-wrapper {
    width: 100%;
}

.widget-wrapper > div {
    width: 100%;
    margin: 0 auto;
}

.widget-wrapper .widget-container {
    min-width: 20%;
    padding: 0;
}

.error-container {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.error-icon {
    color: #721c24;
    margin-right: 10px;
}

.error-label {
    font-weight: bold;
}

.error-message {
    margin: 0;
}

.warning-head {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning {
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    font-size: 14px;
    box-shadow: var(--box-shadow-1);
    background-color: #fff;
    padding: 10px;
    width: 100%;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    margin: 2px auto;
}

    .warning img {
        height: 25px;
        aspect-ratio: 1/1;
        margin-right: 10px;
    }

.warning-title {
    /*font-size: 14px;*/
    margin: 0;
    margin-right: 10px;
    color: var(--warning-color);
    font-weight: bold;
}

.warning a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

.content {
    display: flex;
    gap: 20px;
}


.left-panel, .right-panel {
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.left-panel {
    width: 65%;
}

.right-panel {
    width: 35%;
}

.notices, .student-profiles, .upcoming-activities, .notifications, .event-calendar, .district-notice-table {
    padding: 20px 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow-1);
    width: 100%;
}

.game-description {
    padding-right: 20px;
}

.section-title {
    margin-bottom: 10px;
    color: var(--theme-primary-color);
    font-weight: bold;
    font-size: 20px;
}

.notice-item {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: transparent;
    margin: 20px 0;
}

.notice-text,
.notice-detail {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

    .notice-detail strong {
        display: inline-block
    }

    .notice-detail a {
        display: inline-block;
    }

.student-profiles {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow-1);
    padding: 15px;
    margin-bottom: 20px;
}

.profile-dropdown {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
    box-sizing: border-box;
}

.notifications {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow-1);
    padding: 20px 10px;
    margin-bottom: 20px;
}

    .notifications .section-title {
        margin-bottom: 15px;
    }

.notification-item {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    display: flex;
    gap: 24px;
    font-size: 14px;
    -webkit-align-items: center !important;
    align-items: center;
    line-height: 1;
}

    .notification-item img {
        height: 30px;
        aspect-ratio: 1/1;
        object-fit: contain;
    }

.notification-title {
    font-weight: bold;
}

.notification-message {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-top: 5px;
}

.view-more {
    display: inline-block;
    margin-top: 5px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    padding: 6px 38px;
    background-color: var(--theme-primary-color);
    font-weight: bold;
    border-radius: 4px;
}

    .view-more:hover,
    .view-more:focus {
        background-color: var(--theme-primary-color);
        color: var(--color-surface);
    }

.view-more-schedule {
    display: inline-block;
    margin-top: 5px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    padding: 6px 38px;
    background-color: #757575;
    font-weight: bold;
    border-radius: 4px;
}

.dv-schedule {
    text-align: center;
}

.notification-link:hover {
    text-decoration: underline;
}

.notifications .notification-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.district-notice-table {
    overflow-x: hidden;
    overflow-y: hidden;
}

.district-notice-table-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px 10px 0px;
}

.table-title {
    color: var(--theme-primary-color);
    font-weight: bold;
    font-size: 20px;
}

.district-notice-table-title select {
    padding: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    width: 200px;
}

.district-notice-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 550px;
}

.notice-table-row {
    width: 100%;
    overflow: hidden;
    position: relative;
}

    .notice-table-row:nth-child(2n+1) {
        background-color: #f7f8fa;
    }

.notice-date {
    padding: 20px;
}

    .notice-date span {
        background-color: var(--text-dark);
        padding: 10px;
        color: white;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        display: inline-block;
        text-align: center;
    }

.notice-table-box:last-child {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    padding-right: 20px;
}

.notice-table-box :first-child {
    font-weight: bold;
}

.event-calendar {
    width: 100%;
}

/* Jquery Calendar UI */
/* Style the datepicker container */

.ui-widget.ui-widget-content {
    border: none;
    border-bottom: 1px solid #c5c5c5;
}

.ui-datepicker {
    width: 100% !important;
    aspect-ratio: 1/1;
}

/* Style the header */
.ui-datepicker-header {
    color: var(--text-dark);
    background-color: transparent;
    border: none;
    text-align: left;
}

.ui-datepicker .ui-datepicker-title {
    font-size: 1.8em;
    line-height: 1.8em;
    text-align: left;
    width: 100% !important;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start
}

    .ui-datepicker .ui-datepicker-title .ui-datepicker-year {
        display: none
    }

/* Style the navigation buttons */
.ui-datepicker-prev, .ui-datepicker-next {
    background-color: #3498db;
    color: #fff;
    display: none;
}

.ui-datepicker table {
    height: 100% !important;
}

.ui-datepicker-calendar table {
    height: 100% !important;
}
/* Style the day cells */
.ui-datepicker-calendar td {
    border: 2px solid transparent;
    background-color: transparent;
    color: #333;
    border-radius: 10px;
}

/* Style the selected date */
.ui-state-active {
    border-radius: 50%;
    border: 2px solid black;
    height: 25px !important;
    aspect-ratio: 1/1 !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    background-color: transparent;
}

.ui-state-active, .ui-widget-content .ui-state-active {
    color: #000;
    border: 2px solid black !important;
    height: auto !important;
    display: flex;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background-color: transparent;
}

.ui-state-default, .ui-widget-content .ui-state-default {
    border: none;
    text-align: center;
    background-color: transparent;
}

.strikeout td {
    position: relative;
}

    .strikeout td::after {
        content: "";
        position: absolute;
        left: 0;
        top: 48%;
        width: 100%;
        border-bottom: 1px solid red;
        z-index: 1;
    }

.game-canceled {
    color: red;
}

.game-postponed {
    color: red;
    padding: 0px;
}

#dvGamestatus:has(> .game-postponed) {
    padding: 0px !important;
}

@media (max-width: 1220px) {
    .page-title {
        font-size: 24px;
    }

    .page-desc {
        font-size: 18px;
    }

    .content {
        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
    }

    .district-notice-table {
        overflow-x: auto;
        font-size: 12px;
        padding: 2px;
        width: 99%;
        margin: auto;
    }

    .district-notice-table-title {
        padding: 4px;
    }

    .notice-date {
        padding: 4px !important;
    }

        .notice-date span {
            margin: 0px auto;
        }

    .notice-table-row {
        padding: 4px !important;
    }

    .notice-table-box {
        padding: 4px !important;
    }

        .notice-table-box:last-child {
            padding: 0px;
        }

    .view-more {
        font-size: 14px;
    }

    .notifications, .event-calendar {
        width: 99%;
        margin: 0 auto;
    }

    .right-panel {
        padding: 0 0 4px;
    }
}

.badge {
    position: absolute;
    margin-left: -5px;
    margin-top: -10px;
    background-color: var(--color-emerald-green);
    color: var(--text-dark-green);
}

.notice-color {
    width: 10px;
    height: 65px;
}

.student-profile-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 10px;
}

/* Add Sports */
.add-sports-link {
    color: var(--color-primary-action);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

    .add-sports-link:hover {
        text-decoration: underline;
    }

/* Remove student (Red X) */
.remove-student-link {
    color: var(--color-danger);
    font-size: 16px;
    cursor: pointer;
}

    .remove-student-link:hover {
        color: var(--color-danger-hover);
    }

.welcome-img {
    padding-right: 10px;
    height: 20px;
    padding-bottom: 3px;
}

.fs-12 {
    font-size: 12px;
}

#scheduleColorPicker {
    width: 10px;
    height: 60px;
}

#dvGamestatus {
    padding: 0px 10px 25px 0px;
}