/* Student Schedule Statistics */

/* Custom CSS for 6 cards per row on very wide screens */
@media (min-width: 1600px) { /* Adjust this 1600px breakpoint as needed */
    .sds-stat-column {
        flex: 0 0 16.66666667%;   /* Equivalent to 100% / 6 for flex-basis */
        max-width: 16.66666667%; /* Bootstrap 4 uses max-width for its columns */
    }
}

/* --- Global SDS Card Enhancements --- */
section.sds-card {
    border: 1px solid #e0e5ec; 
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* Subtle lift on hover */

section.sds-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sds-card-block {
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- SDS Card Title (e.g., "Total Work Logs") --- */
.sds-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 0.85rem;
    display: block;
    line-height: 1.3;
    flex-shrink: 0;
}

/* --- SDS Stats Container --- */
.sds-dual-stat-container {
    font-size: 1rem;
    margin-top: 4px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* --- Individual SDS Stat Entry (each line: "Label: Value") --- */
.sds-stat-entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    line-height: 1.5;
}

/* Subtle separator line between stat entries */
.sds-stat-entry + .sds-stat-entry {
    border-top: 1px solid #f0f0f0;
    margin-top: 0.25rem;
    padding-top: 0.6rem;
}

.sds-stat-entry.sds-currently-active[style*="display: none"] + .sds-stat-entry {
    border-top: none;
    margin-top: 0;
    padding-top: 0.35rem;
}

/* --- SDS Stat Label (e.g., "Currently Active:", "Career Total:") --- */
.sds-stat-label {
    color: #6c757d;
    font-size: 0.875em;
    margin-right: 0.5em;
}

/* --- SDS Stat Value (the numbers) --- */
.sds-stat-value {
    font-weight: 600;
    color: #212529;
    font-size: 1.05em;
    text-align: right;
}

/* Scholarship modal */
.scholarship-modal-header {
    background: #2196F3;
    color: white;
    border-bottom: none;
    padding: 15px;
    border-radius: 25px;
}

.scholarship-modal-header .close {
    color: white;
    opacity: 0.9;
    text-shadow: none;
}

.scholarship-modal-header .close:hover {
    opacity: 1;
}

.scholarship-program {
    color: white;
    font-weight: 600;
}

.scholarship-donor {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.3rem;
    margin-bottom:.25rem;
}

.scholarship-stats-card {
    background: #2196F3;
    color: white;
    padding: 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.stat-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.scholarship-description {
    padding: 20px;
    line-height: 1.6;
}

.scholarship-apply {
    margin-top: 10px;
    padding: 8px 24px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.criteria-section {
    margin-bottom: 25px;
}

.scholarship-section-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.scholarship-section-header::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2196F3;
    margin-right: 10px;
    border-radius: 25px;
}

.criteria-item {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    margin-bottom: 10px;
}

.criteria-item .h6 {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.criteria-item .h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.criteria-item .h5:not(:empty) {
    padding: 5px 10px;
    display: inline-block;
}

.row-criteria {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.row-criteria > [class*="col-"] {
    padding: 5px;
}

@media (max-width: 768px) {
    .stat-item {
        margin-bottom: 10px;
    }
    
    .criteria-section {
        margin-bottom: 20px;
    }
}

/* FILE: bstyles.css */

:root {
    --fresh-accent: #2196F3;
    --fresh-accent-light: #2196F3;
    --fresh-dark: #1a1a2e;
    --fresh-card: #ffffff;
    --fresh-text: #2d3748;
    --fresh-text-light: #718096;
    --fresh-border: #e2e8f0;
    --fresh-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --fresh-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Page background setup */
.fresh-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.fresh-page.background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.9);
  transform: scale(1.02);
  z-index: 0; /* Sits at the very back */
}

@keyframes fresh-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.fresh-page::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px;
  z-index: 1; 
}

/* Fallback gradient if no background image */
.fresh-page:not(.background) {
    background: linear-gradient(135deg, #2196F3 0%, #00A377 100%);
}

/* Login card container */
.fresh-container {
    width: 90%;
    max-width: 500px; /* New single-column width */
    background: var(--fresh-card);
    border-radius: 25px;
    box-shadow: var(--fresh-shadow);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Top blue header bar */
.fresh-header-bar {
    background:#2196F3;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.fresh-header-logo {
    max-height: 60px; /* Controls height of app logo */
    width: auto;
    filter: brightness(0) invert(1);
}

/* School badge (now on blue bar) */
.fresh-school-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fresh-text);
    background-color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--fresh-transition);
}

.fresh-school-badge:hover {
    color: var(--fresh-text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fresh-school-badge i {
    color: var(--fresh-accent);
    font-size: 1.1rem;
}

/* Main white content area */
.fresh-content-area {
    padding: 40px;
}

/* School Logo (in white area) */
.fresh-school-logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.fresh-school-logo {
    max-width: 400px;
    height: auto;
    max-height: 125px;
}

/* Form titles */
.fresh-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fresh-text);
    margin-bottom: 10px;
}

.fresh-form-subtitle {
    color: var(--fresh-text-light);
    margin-bottom: 35px;
    font-size: 1rem;
}

/* Form styling */
.fresh-input-group {
    margin-bottom: 24px;
    position: relative;
}

.fresh-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fresh-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fresh-input-wrapper {
    position: relative;
}

.fresh-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fresh-text-light);
    font-size: 1.1rem;
}

.fresh-input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 48px;
    border: 2px solid var(--fresh-border);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--fresh-transition);
    background: #ffffff;
    font-family: inherit;
}

.fresh-input:focus,
.fresh-input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-color: var(--fresh-accent);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1) !important;
}

.fresh-input::placeholder {
    color: var(--fresh-text-light);
    opacity: 0.6;
}

/* Primary button */
.fresh-btn-primary {
    width: 100%;
    height: 52px;
    background: var(--fresh-accent);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--fresh-transition);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.fresh-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
}

.fresh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4); /* Updated shadow color */
}

.fresh-btn-primary:hover::before {
    left: 100%;
}

.fresh-btn-primary:active {
    transform: translateY(0);
}

/* Forgot password link */
.fresh-forgot-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--fresh-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--fresh-transition);
}

.fresh-forgot-link:hover {
    color: var(--fresh-dark);
    text-decoration: none;
}

/* Divider */
.fresh-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--fresh-text-light);
    font-weight: 600;
    font-size: 0.85rem;
}

.fresh-divider::before,
.fresh-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fresh-border);
}

.fresh-divider::before {
    margin-right: 15px;
}

.fresh-divider::after {
    margin-left: 15px;
}

/* SSO buttons */
.fresh-sso-container {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.fresh-split-col .fresh-sso-container {
    display: inline-grid;
    justify-items: initial; /* Resets the centering */
}

.fresh-sso-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from 'center' */
    height: 50px;
    border: 2px solid var(--fresh-border);
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: var(--fresh-transition);
    text-decoration: none;
    gap: 15px; /* Added for spacing */
    padding-left: 20px; /* Added for indentation */
    padding-right: 20px;
    
}

.fresh-sso-btn:hover {
    border-color: var(--fresh-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fresh-sso-btn img {
    height: 32px; /* Set a uniform height */
    width: 32px; /* Set a uniform width */
    object-fit: contain;
}

.fresh-sso-text {
    font-weight: 600;
    color: var(--fresh-text);
    font-size: 0.95rem;
}

/* Footer */
.fresh-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--fresh-text-light); /* Make text visible on white */
    margin-top: 30px; /* Add space above it */
    padding-top: 20px; /* Add space below the border */
}
.fresh-footer img {
    vertical-align: middle;
}

/* Alert */
.fresh-alert {
    padding: 16px 20px;
    border-radius: 25px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.fresh-alert-warning {
    background: #ffe8cc;
    color: #92400e;
}

/* Select dropdown */
.fresh-select {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 48px;
    border: 2px solid var(--fresh-border);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--fresh-transition);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 18px center;
    background-size: 12px;
    appearance: none;
    font-family: inherit;
}

.fresh-select:focus {
    outline: none;
    border-color: var(--fresh-accent);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

/* 2FA specific styles */
.fresh-2fa-code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 600;
}

.fresh-cancel-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--fresh-text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.fresh-cancel-link:hover {
    color: var(--fresh-text);
}

/* Responsive */
@media (max-width: 576px) {
    .fresh-page {
        padding: 0; /* Full width on mobile */
        align-items: flex-start; /* Align card to top */
    }
    
    .fresh-container {
        width: 100%;
        max-width: 100% !important; /* Force full width on mobile, overriding .is-sso-layout */
        border-radius: 0; /* No radius on mobile */
        min-height: 100vh;
        box-shadow: none;
    }
    
    .fresh-content-area,
    .fresh-header-bar {
        padding: 30px;
    }

    .fresh-footer {
        position: relative;
        text-align: center;
        padding: 20px;
        transform: none;
        left: auto;
        bottom: auto;
        z-index: 2;
    }
}

/* Loading spinner */
.fresh-spinner {
    animation: fresh-spin 1s linear infinite;
}

@keyframes fresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- STYLES FOR THE SSO SPLIT LAYOUT --- */

/* 1. Makes the card wider when the .is-sso-layout class is added by Twig */
.fresh-container.is-sso-layout {
    max-width: 800px;
}

/* 2. The new flex container for the 2 columns */
.fresh-split-layout {
    display: flex;
    align-items: stretch; /* Makes columns equal height */
    gap: 20px;
}

/* 3. The column styles */
.fresh-split-col {
    flex: 1; /* Each column takes up 50% of the space */
    display: flex;
    flex-direction: column;
}

/* 4. Styles for the right (SSO) column to center its content */
.fresh-split-col.fresh-sso-side {
    justify-content: center;
    align-items: center;
}
.fresh-split-col.fresh-sso-side .fresh-sso-container {
    padding-top: 10px;
}

/* 5. The new vertical "OR" divider */
.fresh-vertical-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb; /* Ensure text is horizontal */
    color: var(--fresh-text-light);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    width: 25px; /* Give it some space */
}
.fresh-vertical-divider::before,
.fresh-vertical-divider::after {
    content: '';
    position: absolute;
    height: 35%; /* Controls line height */
    width: 1px;
    background: var(--fresh-border);
}
.fresh-vertical-divider::before {
    top: 0;
}
.fresh-vertical-divider::after {
    bottom: 0;
}


/* --- RESPONSIVE for the split layout --- */
@media (max-width: 768px) {
    /* Stack the columns on smaller screens */
    .fresh-split-layout {
        flex-direction: column;
        gap: 0;
    }
    
    /* Use the horizontal divider on mobile */
    .fresh-vertical-divider {
        display: flex;
        align-items: center;
        margin: 30px 0;
        color: var(--fresh-text-light);
        font-weight: 600;
        font-size: 0.85rem;
        width: 100%;
        writing-mode: horizontal-tb;
    }

    .fresh-vertical-divider::before,
    .fresh-vertical-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        width: auto; /* Reset width */
        background: var(--fresh-border);
        position: static; /* Reset position */
    }

    .fresh-vertical-divider::before {
        margin-right: 15px;
    }

    .fresh-vertical-divider::after {
        margin-left: 15px;
    }
}
 
/* FERPA blur: frost the background behind any open modal */
body.modal-open .page-content,
body.modal-open .side-menu,
body.modal-open .site-header-2 {
    -webkit-filter: blur(5px);
    filter: blur(5px);
}

/* Grid pages with a bottom proxy scroll bar: #gradebook-wrapper + #scrollcontainer
   (task progress, industry certification progress, professionalism, test results,
   NOCTI scores, WBL project modal). The grid scrolls natively (trackpad swipe, tilt
   wheel, Shift+wheel) with its own bar hidden, and #scrollcontainer is the one visible
   bar. Styling that bar makes Chrome/Safari draw it permanently, even when macOS uses
   auto-hiding overlay scroll bars (the trackpad default). Sync logic is in js/app.js. */
#gradebook-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
}
#gradebook-wrapper::-webkit-scrollbar {
    display: none;
}
#scrollcontainer {
    overflow-y: hidden;
}
#scrollcontainer::-webkit-scrollbar {
    height: 17px;
}
#scrollcontainer::-webkit-scrollbar-track {
    background: #eceff1;
}
#scrollcontainer::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 6px;
}
#scrollcontainer::-webkit-scrollbar-thumb:hover {
    background: #90a4ae;
}
/* Drawn bar for browsers that can't keep the native one visible (Firefox with
   overlay scroll bars). The track and thumb are added by js/app.js; inline
   overflow-x:scroll on #scrollcontainer needs !important to override. */
#scrollcontainer.grid-scrollbar-custom {
    overflow: hidden !important;
}
#scrollcontainer.grid-scrollbar-custom #scrollcontent {
    display: none;
}
.grid-scrollbar-track {
    position: relative;
    height: 17px;
    background: #eceff1;
}
.grid-scrollbar-thumb {
    position: absolute;
    top: 2px;
    height: 13px;
    border-radius: 6px;
    background: #b0bec5;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}
.grid-scrollbar-thumb:hover {
    background: #90a4ae;
}