:root {
    --asas-bg: #C4E1E6;
    --asas-sidebar-bg: #2A5A6A;
    --asas-primary: #8DBCC7;
    --asas-primary-hover: #79AAB6;
    --asas-border: rgba(42, 90, 106, 0.1);
    --asas-sidebar-border: #3A6A7A;
    --asas-text-muted: #8BA8B3;
    --asas-sage: #8DBCC7;
    --asas-mint: #EBFFD8;
    --asas-dark: rgba(42, 90, 106, 0.1);
    --sidebar-width: 256px;
    --navbar-height: 64px;
}

/* experimental */
:root {
    /* Sets your base body font size to 11px */
    /* --bs-root-font-size: 0.6875rem; */
    --bs-root-font-size: 13px;
    --bs-body-font-size: 13px;
  }
  
  /* Readjusted Heading Scale for an 11px Baseline */
  h1, .h1 { font-size: 1.75rem; }  /* ~28px (Down from 2.5rem) */
  h2, .h2 { font-size: 1.5rem; }   /* ~24px (Down from 2rem) */
  h3, .h3 { font-size: 1.25rem; }  /* ~20px (Down from 1.75rem) */
  h4, .h4 { font-size: 1.125rem; } /* ~18px (Down from 1.5rem) */
  h5, .h5 { font-size: 1.0rem; }   /* ~16px (Down from 1.25rem) */
  h6, .h6 { font-size: 0.875rem; } /* ~14px (Down from 1rem) */
/* experimental */

/* Global Styles */
body {
    background-color: var(--asas-bg);
    color: #2d2a3a;
    font-family: 'Inter', sans-serif;

}

.dashboard-card-body {
    background-color: #f5f5f5;
}

.pagination {
    --bs-pagination-font-size: 13px;
}

/* Common Components */
.btn-purple {
    background-color: var(--asas-primary);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: var(--asas-primary-hover);
    color: white;
}

.btn-outline-purple {
    border: 1px solid var(--asas-primary);
    color: var(--asas-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    background-color: var(--asas-primary);
    color: white;
}

.btn-students {
    background-color: var(--asas-sidebar-bg);
    color:white;
}
.btn-students:hover {
    background-color: var(--asas-primary-hover);
    color:white;
}

.btn-light{
    background-color: var(--asas-bg);
    border-width: 1px;
    border-style: solid;
    border-color: var(--asas-border);
    color:black;
}

.card-asas {
    background-color: #fff;
    border: 1px solid var(--asas-border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bg-purple { background-color: var(--asas-primary); }
.bg-purple-soft { background-color: rgba(42, 90, 106, 0.1) !important; }
.text-purple { color: var(--asas-sidebar-bg) !important; }
.bg-stats-purple { background-color: white; border: 1px solid var(--asas-border); }
.txt-stats-purple-dark { color: var(--asas-primary); }

.fa-slider::-webkit-slider-thumb {
    background: var(--asas-sidebar-bg);
}

/* Sidebar Styles (from header.php) */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--asas-sidebar-bg);
    border-right: 1px solid var(--asas-sidebar-border);
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--asas-sidebar-border);
}

.nav-link-asas {
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0.25rem 1rem;
}

.nav-link-asas:hover, .nav-link-asas.active {
    color: #fff;
    background-color: rgba(141, 188, 199, 0.15);
}

.nav-link-asas i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.nav-link-asas.active i {
    color: var(--asas-primary);
}

.nav-link-sub {
    font-size: 0.875rem;
    padding-left: 3.5rem !important;
    color: #94a3b8;
}

#main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.top-navbar {
    height: var(--navbar-height);
    background-color: rgba(196, 225, 230, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--asas-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.table-asas thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table-asas td {
    padding: 1rem;
    vertical-align: middle;
}

/*dropdown*/
.dropdown-item.active, .dropdown-item:active{
    background-color: var(--asas-bg);
    color:#2d2a3a;
}

@media (max-width: 991.98px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.show { transform: translateX(0); }
    #main-content { margin-left: 0; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(42, 90, 106, 0.4);
        z-index: 1035;
    }
    .sidebar-overlay.show { display: block; }
}

/* Result Portal Styles (from index.php) */
body.result-portal {
    background: linear-gradient(135deg, #C4E1E6 0%, #A4CCD9 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.result-portal .btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 188, 199, 0.3);
}

.result-portal .card-asas {
    /* border-radius: 1rem; */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.slider-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* border-radius: 1.5rem; */
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.slider-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.assessment-item { margin-bottom: 1.5rem; }

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 10px 0;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--asas-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.percentage-badge {
    background: rgba(141, 188, 199, 0.15);
    color: var(--asas-primary);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.grade-badge {
    font-size: 3rem;
    font-weight: 800;
    color: var(--asas-primary);
    line-height: 1;
}

.progress-custom {
    height: 14px;
    border-radius: 7px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.status-box {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--asas-primary);
}

.unreleased-slider::-webkit-slider-thumb {
    background: #f59e0b;
}

.released-bar::-webkit-slider-thumb {
    display: none;
}

@media (min-width: 768px) {
    .border-md-end { border-right: 1px solid rgba(0,0,0,0.1) !important; }
}

.header-section {
    margin-bottom: 3rem;
    text-align: center;
}

.header-section img {
    height: 80px;
    margin-bottom: 1.5rem;
}

/* Login Styles (from login.php) */
body.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(45, 42, 58, 0.1);
    background-color: white;
}

.login-header {
    color: var(--asas-sidebar-bg);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.form-control:focus {
    border-color: var(--asas-primary);
    box-shadow: 0 0 0 0.25rem rgba(141, 188, 199, 0.1);
}
