body {
    background: url("../images/BG_BlueTriangles.png") repeat 0 0;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    --mud-palette-card-bg-dark: #00315F;
    --mud-palette-drawer-icon: #FFFFFF;
    --mud-palette-text-primary: #FFFFFF;
}

.mud-input-control .mud-input input::placeholder {
    color: rgba(255, 255, 255, .8);
    font-style: italic;
}

.rammetto-one-regular {
    font-family: "Rammetto One", sans-serif;
    font-style: normal;
}

.responsive-heading {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.bg-dark-50 {
    background-color: rgba(60, 60, 60, 0.5);
}

a.text-white, button.text-white {
    color: #fff !important;
}

.btn-huge {
    font-size: 1.75rem;
    padding: 0.9rem 2.1rem;
    border-radius: 0.75rem;
}

/* Navigation Links - Header and Drawer */
.social-icon-link,
.mud-nav-group-header,
.mud-icon-button {
    transition: background-color 0.2s ease;
    outline: none;
}

.social-icon-link,
.mud-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
}

.social-icon-link:hover,
.mud-nav-group-header:hover,
.mud-icon-button:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.social-icon-link:focus,
.mud-nav-group-header:focus,
.mud-icon-button:focus,
.nav-link-hover:has(> a:focus-visible),
.mud-nav-group.nav-link-hover > button:focus-visible,
.nav-link-hover:has(> button:focus-visible) {
    background-color: rgba(0, 0, 0, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.nav-link-hover:has(> a:hover),
.mud-nav-group.nav-link-hover > button:hover,
.nav-link-hover:has(> button:hover) {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Override active nav link hover color */
.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Dark card background using theme variable */
.card-bg-dark {
    background-color: var(--mud-palette-card-bg-dark);
}

/* Drawer themed styling */
.drawer-themed {
    background-color: var(--mud-palette-drawer-background);
    color: var(--mud-palette-drawer-text);
}

/* AppBar themed styling */
.appbar-themed {
    background-color: var(--mud-palette-appbar-background);
    color: var(--mud-palette-appbar-text);
}

/* Marathon info styling */
.marathon-info {
    display: block;
}

.marathon-info-item {
    display: inline;
    margin-right: 1rem;
}

.marathon-info-label {
    font-size: 1.3em;
    font-weight: 600;
}

/* Marathon image styling */
.marathon-image-link {
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.marathon-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
}

/* Account pages styling */
.account-page-container {
    color: #fff;
    padding: 1rem 3rem;
}

.account-page-container .mud-grid {
    gap: 0.5rem;
}

.account-page-container .mud-item {
    padding: 0.25rem;
}

.account-page-container .mud-text {
    color: #fff !important;
}

.account-page-container .mud-static-button {
    background-color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    color: #fff !important;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.account-page-container .mud-static-button:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.account-page-container .mud-static-button:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.account-page-container .mud-static-button:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.65;
}

/* Layout height fixes */
html, body {
    height: 100%;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mud-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mud-main-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Rich text links match surrounding text */
.rte-editor a,
.rte-editor a:visited,
.rte-content a,
.rte-content a:visited {
    color: inherit;
    text-decoration: underline;
}

/* Blazored Text Editor Styling */
.ql-toolbar.ql-snow {
    color: white !important;
}

.ql-toolbar.ql-snow .ql-stroke {
    stroke: white !important;
}

.ql-toolbar.ql-snow .ql-fill {
    fill: white !important;
}

.ql-toolbar.ql-snow .ql-picker-label {
    color: white !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button:focus .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: white !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button:focus .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: white !important;
}

.ql-editor {
    padding: 16px;
}

/* Quill Picker Options Dropdown Styling */
.ql-snow .ql-picker-options {
    background-color: #003a7a;
    border: 1px solid #00315f;
}

.ql-snow .ql-picker-item {
    color: white;
}

.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected {
    background-color: #00315f;
    color: white;
}

.ql-snow .ql-picker-item svg .ql-stroke {
    stroke: white;
}

.ql-snow .ql-picker-item svg .ql-fill {
    fill: white;
}

/* Volunteer Schedule Grid */
.schedule-grid-container {
    overflow-x: auto;
    max-width: 100%;
}

.schedule-grid {
    display: grid;
    gap: 4px;
}

.grid-header {
    position: sticky;
    top: 0;
    background: var(--mud-palette-primary);
    z-index: 10;
    padding: 8px;
    font-weight: bold;
}

.grid-time-label {
    padding: 8px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.schedule-cell {
    background: var(--mud-palette-surface);
    transition: background-color 0.2s;
    min-height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-cell:hover {
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
    border-color: var(--mud-palette-primary);
}

.schedule-cell-assigned {
    background: rgba(var(--mud-palette-primary-rgb), 0.15);
    border: 2px solid var(--mud-palette-primary);
}

/* Shift color variations for visual distinction between consecutive shifts */
.schedule-cell-shift-0 {
    background: rgba(76, 175, 80, 0.35);
    border: 2px solid #4CAF50;
}

.schedule-cell-shift-1 {
    background: rgba(156, 39, 176, 0.35);
    border: 2px solid #9C27B0;
}

.schedule-cell-shift-2 {
    background: rgba(255, 152, 0, 0.35);
    border: 2px solid #FF9800;
}

.schedule-cell-shift-3 {
    background: rgba(0, 188, 212, 0.35);
    border: 2px solid #00BCD4;
}

.schedule-cell-shift-4 {
    background: rgba(233, 30, 99, 0.35);
    border: 2px solid #E91E63;
}

.schedule-cell-shift-5 {
    background: rgba(139, 195, 74, 0.35);
    border: 2px solid #8BC34A;
}

.schedule-cell-selected {
    background: rgba(var(--mud-palette-info-rgb), 0.25);
    border: 3px solid var(--mud-palette-info);
    box-shadow: 0 0 8px rgba(var(--mud-palette-info-rgb), 0.4);
}

.schedule-cell-selectable {
    cursor: pointer;
}

.schedule-cell-selectable:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.schedule-cell-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 4px 8px;
}

.schedule-cell-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-cell-conflicts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.schedule-conflict-chip {
    font-size: 0.65rem !important;
    height: 18px !important;
    padding: 0 6px !important;
}

.schedule-conflict-chip .mud-chip-content {
    padding: 0 !important;
}

.schedule-cell-remove {
    flex-shrink: 0;
    opacity: 0.5;
}

.schedule-cell-remove:hover {
    opacity: 1;
}

/* Schedule cell highlight states for volunteer availability */
.schedule-cell-highlight-available {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
}

.schedule-cell-highlight-available:hover {
    background: rgba(76, 175, 80, 0.45);
    border: 2px solid #4CAF50;
}

.schedule-cell-highlight-assigned {
    background: rgba(255, 193, 7, 0.3);
    border: 2px solid #FFC107;
}

.schedule-cell-highlight-assigned:hover {
    background: rgba(255, 193, 7, 0.45);
    border: 2px solid #FFC107;
}

.schedule-cell-highlight-unavailable {
    background: rgba(158, 158, 158, 0.2);
    border: 1px solid #9E9E9E;
    opacity: 0.6;
    cursor: not-allowed;
}

.schedule-cell-highlight-unavailable:hover {
    background: rgba(158, 158, 158, 0.25);
    border: 1px solid #9E9E9E;
    box-shadow: none;
}

/* Host row highlight states for volunteer availability */
.host-row-selected {
    background: rgba(33, 150, 243, 0.2);
    outline: 2px solid #2196F3;
}

.host-row-highlight-available {
    background: rgba(76, 175, 80, 0.25);
}

.host-row-highlight-available:hover {
    background: rgba(76, 175, 80, 0.4);
}

.host-row-highlight-assigned {
    background: rgba(255, 193, 7, 0.25);
}

.host-row-highlight-assigned:hover {
    background: rgba(255, 193, 7, 0.4);
}

.host-row-highlight-unavailable {
    background: rgba(158, 158, 158, 0.15);
    opacity: 0.6;
}

.host-row-highlight-unavailable:hover {
    background: rgba(158, 158, 158, 0.2);
}

.host-drop-zone {
    min-height: 60px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 8px;
    background: var(--mud-palette-primary);
}

.host-assigned-cell {
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
}

/* Host color cycling - matches shift colors */
.host-color-0 { background: #2E7D32; } /* Green */
.host-color-1 { background: #1565C0; } /* Blue */
.host-color-2 { background: #6A1B9A; } /* Purple */
.host-color-3 { background: #E65100; } /* Orange */
.host-color-4 { background: #00838F; } /* Teal */
.host-color-5 { background: #AD1457; } /* Pink */

.host-empty-cell {
    background: var(--mud-palette-surface);
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

/* Utility Classes */
.flex-shrink-0 {
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
}

.flex-shrink-0.mud-input-control {
    max-height: 56px;
}

/* Volunteer Hour Warning Colors */
.hours-warning {
    color: orange;
}

.hours-danger {
    color: red;
    font-weight: bold;
}

/* Table Sort Labels & Icons - Make white */
.sort-direction-icon,
.sort-direction-icon .mud-icon-root,
.sortable-column-header,
.column-header .mud-icon-button,
.mud-table-sort-label,
.mud-table-sort-label .mud-button-root,
.mud-table-sort-label .mud-icon-root {
    color: var(--mud-palette-text-primary) !important;
}

/* Hide sort index number (shows column sort order in multi-sort) */
.mud-sort-index {
    display: none;
}
