/* ---- Teal & white theme (matches SVU crest) ---- */
:root {
    --bs-primary: #0a3a39;
    --bs-primary-rgb: 10, 58, 57;
    --bs-link-color: #0a3a39;
    --bs-link-color-rgb: 10, 58, 57;
    --bs-link-hover-color: #072b2a;
    --bs-link-hover-color-rgb: 7, 43, 42;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #f4f9f8;
    overflow-x: hidden;
}

.navbar.bg-dark {
    --bs-bg-opacity: 1;
    background: linear-gradient(120deg, #0a3a39 0%, #12514f 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0a3a39;
    --bs-btn-border-color: #0a3a39;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #072b2a;
    --bs-btn-hover-border-color: #072b2a;
    --bs-btn-focus-shadow-rgb: 10, 58, 57;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #072b2a;
    --bs-btn-active-border-color: #062222;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0a3a39;
    --bs-btn-disabled-border-color: #0a3a39;
}

.btn-outline-primary {
    --bs-btn-color: #0a3a39;
    --bs-btn-border-color: #0a3a39;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0a3a39;
    --bs-btn-hover-border-color: #0a3a39;
    --bs-btn-focus-shadow-rgb: 10, 58, 57;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a3a39;
    --bs-btn-active-border-color: #0a3a39;
    --bs-btn-disabled-color: #0a3a39;
    --bs-btn-disabled-border-color: #0a3a39;
}

.btn {
    border-radius: 0.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary:hover,
.btn-outline-primary:hover {
    box-shadow: 0 4px 12px rgba(10, 58, 57, 0.25);
}

.btn:active {
    transform: translateY(0);
}

.form-check-input:checked {
    background-color: #0a3a39;
    border-color: #0a3a39;
}

.form-control:focus,
.form-select:focus {
    border-color: #6c8888;
    box-shadow: 0 0 0 0.25rem rgba(10, 58, 57, 0.25);
}

.sidebar-brand-panel {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem;
    padding: 1.75rem 1.25rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 2px 10px rgba(10, 58, 57, 0.15);
}

.sidebar-brand-credit {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
    margin-top: 0.5rem;
    text-decoration: none;
}

.sidebar-brand-credit:hover {
    color: rgba(255, 255, 255, 0.85);
}

.attendance-illustration {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.sidebar-brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.card {
    border-top: 3px solid #0a3a39;
    border-radius: 0.85rem;
    box-shadow: 0 2px 12px rgba(10, 58, 57, 0.07);
}

.badge {
    border-radius: 50rem;
    padding: 0.42em 0.85em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.class-card {
    border-left: 4px solid #0a3a39;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.class-card.is-submitted {
    border-left-color: #198754;
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 58, 57, 0.12) !important;
}

.stat-icon-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-badge-teal { background-color: #0a3a39; }
.stat-badge-blue { background-color: #2563eb; }
.stat-badge-purple { background-color: #7c3aed; }
.stat-badge-orange { background-color: #ea580c; }

.quick-link-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.1rem 0.5rem;
    font-weight: 600;
    text-align: center;
    border-width: 1px !important;
}

.quick-link-tile i {
    font-size: 1.6rem;
}

.quick-link-green {
    background-color: #e6f4ea;
    border-color: #bfe3c9 !important;
    color: #1e7a3d;
}
.quick-link-green i { color: #2f9e52; }
.quick-link-green:hover { background-color: #1e7a3d; color: #fff; }

.quick-link-purple {
    background-color: #f1eafb;
    border-color: #ddc9f5 !important;
    color: #6a2fc9;
}
.quick-link-purple i { color: #7c3aed; }
.quick-link-purple:hover { background-color: #6a2fc9; color: #fff; }

.quick-link-blue {
    background-color: #e8f0fe;
    border-color: #c3d9fb !important;
    color: #1d4ed8;
}
.quick-link-blue i { color: #2563eb; }
.quick-link-blue:hover { background-color: #1d4ed8; color: #fff; }

.quick-link-orange {
    background-color: #fdf0e4;
    border-color: #fad4b0 !important;
    color: #c2530a;
}
.quick-link-orange i { color: #ea580c; }
.quick-link-orange:hover { background-color: #c2530a; color: #fff; }

.quick-link-green:hover i,
.quick-link-purple:hover i,
.quick-link-blue:hover i,
.quick-link-orange:hover i {
    color: #fff;
}


/* Mobile-first class record form */
.record-card {
    max-width: 560px;
    margin: 0 auto;
}

.record-card .form-label {
    font-weight: 600;
}

.record-card .form-control,
.record-card .form-select {
    min-height: 3rem;
    font-size: 1.05rem;
}

.record-card .btn-lg {
    min-height: 3.25rem;
    font-size: 1.1rem;
}

.photo-capture-wrapper {
    position: relative;
    display: block;
}

.photo-capture-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#photo-preview {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: none;
}

.absent-display {
    font-size: 1.75rem;
    font-weight: 700;
}

.report-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #cfe3e1;
}

.restricted-time-group {
    flex-wrap: wrap;
}

.restricted-time-group select {
    min-width: 0;
    flex: 1 1 auto;
}

@media (max-width: 480px) {
    main.container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
