/* styles.css - SEC Dashboard Custom Styles */
/*
:root {
    --sb-sidenav-dark-bg: #212529;
    --sb-sidenav-dark-color: rgba(255, 255, 255, 0.5);
    --sb-sidenav-dark-active-color: #fff;
    --timeline-line-color: #ced4da;
    --timeline-dot-completed: #198754;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- LAYOUT STRUCTURE --- *//*
#layoutSidenav { display: flex; min-height: 100vh; }

#layoutSidenav_nav {
    flex-basis: 225px;
    flex-shrink: 0;
    position: fixed;
    top: 56px; bottom: 0; left: 0;
    width: 225px;
    overflow-y: auto;
    background-color: var(--sb-sidenav-dark-bg);
    transition: transform 0.3s ease;
    z-index: 1038;
}

#layoutSidenav_content {
    flex-grow: 1;
    margin-left: 225px;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

*//* Sidebar Toggle States *//*
.sb-nav-collapsed #layoutSidenav_nav { transform: translateX(-225px); }
.sb-nav-collapsed #layoutSidenav_content { margin-left: 0; }

/* --- TOP NAVBAR --- *//*
.sb-topnav {
    height: 56px;
    background-color: #212529 !important;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1039;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1rem;
}

.navbar-brand {
    width: 225px; color: #fff; text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
}

.navbar-center-rewards {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 0.5rem;
    color: #fff; font-size: 0.875rem; font-weight: 600;
}
.navbar-center-rewards svg { fill: #0dcaf0; width: 16px; height: 16px; }

#sidebarToggle {
    background: transparent; border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; padding: 0.5rem;
}
#sidebarToggle:hover { color: #fff; }
#sidebarToggle svg { width: 16px; height: 16px; fill: currentColor; }

/* --- SIDEBAR NAVIGATION --- *//*
.sb-sidenav-menu-heading {
    padding: 1.75rem 1rem 0.75rem; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.25);
}

.sb-sidenav .nav-link {
    display: flex; align-items: center; padding: 0.75rem 1rem;
    color: var(--sb-sidenav-dark-color); text-decoration: none;
    font-size: 0.9rem; transition: all 0.15s ease;
}
.sb-sidenav .nav-link:hover {
    color: var(--sb-sidenav-dark-active-color);
    background-color: rgba(255,255,255,0.05);
}

.sb-nav-link-icon {
    margin-right: 0.75rem; width: 1.25rem; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
}
.sb-nav-link-icon svg { width: 14px; height: 14px; fill: currentColor; }

.badge-danger-custom {
    display: inline-block; padding: 0.25em 0.5em; font-size: 0.75rem;
    font-weight: 700; border-radius: 0.25rem; margin-left: auto;
    background-color: #dc3545; color: #fff;
}

/* Sidebar Profile Footer *//*
.sidebar-profile-footer {
    padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2); margin-top: auto;
}
.sidebar-profile-row { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-profile-avatar svg {
    width: 40px; height: 40px; fill: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1); border-radius: 50%; padding: 8px;
}
.sidebar-profile-username { font-weight: 700; color: #fff; font-size: 0.85rem; }
.sidebar-profile-name { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.sidebar-profile-ref { font-size: 0.65rem; color: rgba(255,255,255,0.4); }

/* --- TIMELINE COMPONENT --- *//*
.timeline { position: relative; margin-left: 20px; padding: 1rem 0; }
.timeline::before {
    content: ""; position: absolute; left: 14px; top: 8px; bottom: 24px;
    width: 2px; background-color: var(--timeline-line-color);
}
.timeline-item { position: relative; padding-left: 40px; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute; left: 6px; top: 0.25rem;
    width: 16px; height: 16px; border-radius: 50%;
    background-color: #adb5bd; z-index: 2; border: 2px solid #fff;
}
.timeline-dot.completed { background-color: var(--timeline-dot-completed); }
.timeline-dot.current {
    background-color: #0d6efd; animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(13,110,253,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,110,253,0); }
}

/* --- CARD & UTILITY OVERRIDES --- *//*
.card {
    border: 1px solid rgba(0,0,0,0.125); border-radius: 0.375rem;
    background-color: #fff; margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}
.card-body { padding: 1.25rem; }

.bg-success-subtle { background-color: #d1e7dd !important; }
.text-success-custom { color: #0f5132 !important; }
.bg-light-subtle { background-color: #f8f9fa !important; }

footer.py-4 {
    background-color: #f8f9fa; padding: 2rem 0;
    margin-top: auto; border-top: 1px solid #e9ecef;
}

/* RESPONSIVE *//*
@media (max-width: 768px) {
    #layoutSidenav_nav { transform: translateX(-225px); }
    #layoutSidenav_content { margin-left: 0; }
    .sb-nav-expanded #layoutSidenav_nav { transform: translateX(0); }
    .navbar-center-rewards { display: none; }
} */












/* styles.css - Exact Replica of learner.saveetha.in */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sb-sidenav-dark-bg: #212529;
    --sb-sidenav-dark-color: rgba(255, 255, 255, 0.5);
    --sb-sidenav-dark-active-color: #fff;
    --timeline-line-color: #dee2e6;
    --timeline-dot-completed: #198754;
    --timeline-dot-current: #0d6efd;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
}

/* --- LAYOUT STRUCTURE --- */
#layoutSidenav { display: flex; min-height: 100vh; }

#layoutSidenav_nav {
    flex-basis: 225px;
    flex-shrink: 0;
    position: fixed;
    top: 56px; bottom: 0; left: 0;
    width: 225px;
    overflow-y: auto;
    background-color: var(--sb-sidenav-dark-bg);
    transition: transform 0.15s ease-in-out;
    z-index: 1038;
}

#layoutSidenav_content {
    flex-grow: 1;
    margin-left: 225px;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.15s ease-in-out;
}

/* Toggle States */
.sb-nav-collapsed #layoutSidenav_nav { transform: translateX(-225px); }
.sb-nav-collapsed #layoutSidenav_content { margin-left: 0; }

/* --- TOP NAVBAR --- */
.sb-topnav {
    height: 56px;
    background-color: #212529 !important;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1039;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1rem;
}

.navbar-brand {
    width: 225px; color: #fff; text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
}

.navbar-center-rewards {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 0.5rem;
    color: #fff; font-size: 0.875rem; font-weight: 600;
}
.navbar-center-rewards svg { fill: #0dcaf0; width: 16px; height: 16px; }

#sidebarToggle {
    background: transparent; border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; padding: 0.5rem;
}
#sidebarToggle:hover { color: #fff; }
#sidebarToggle svg { width: 16px; height: 16px; fill: currentColor; }

/* --- SIDEBAR NAVIGATION --- */
.sb-sidenav-menu-heading {
    padding: 1.75rem 1rem 0.75rem; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

.sb-sidenav .nav-link {
    display: flex; align-items: center; padding: 0.75rem 1rem;
    color: var(--sb-sidenav-dark-color); text-decoration: none;
    font-size: 0.9rem; transition: all 0.15s ease;
    font-weight: 500;
}
.sb-sidenav .nav-link:hover {
    color: var(--sb-sidenav-dark-active-color);
    background-color: rgba(255,255,255,0.05);
}
.sb-sidenav .nav-link.active {
    color: var(--sb-sidenav-dark-active-color);
    font-weight: 600;
}

.sb-nav-link-icon {
    margin-right: 0.75rem; width: 1.25rem; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
}
.sb-nav-link-icon svg { width: 14px; height: 14px; fill: currentColor; }

.badge-danger-custom {
    display: inline-block; padding: 0.25em 0.5em; font-size: 0.7rem;
    font-weight: 700; border-radius: 0.25rem; margin-left: auto;
    background-color: #dc3545; color: #fff;
}

/* Sidebar Profile Footer */
.sidebar-profile-footer {
    padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2); margin-top: auto;
}
.sidebar-profile-row { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-profile-avatar svg {
    width: 40px; height: 40px; fill: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1); border-radius: 50%; padding: 8px;
}
.sidebar-profile-username { font-weight: 700; color: #fff; font-size: 0.85rem; line-height: 1.2; }
.sidebar-profile-name { font-size: 0.75rem; color: rgba(255,255,255,0.7); line-height: 1.2; }
.sidebar-profile-ref { font-size: 0.65rem; color: rgba(255,255,255,0.4); line-height: 1.3; }

/* --- TIMELINE COMPONENT --- */
.timeline { position: relative; margin-left: 20px; padding: 1rem 0; }
.timeline::before {
    content: ""; position: absolute; left: 14px; top: 8px; bottom: 24px;
    width: 2px; background-color: var(--timeline-line-color);
}
.timeline-item { position: relative; padding-left: 40px; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute; left: 6px; top: 0.25rem;
    width: 16px; height: 16px; border-radius: 50%;
    background-color: #adb5bd; z-index: 2; border: 2px solid #fff;
}
.timeline-dot.completed { background-color: var(--timeline-dot-completed); }
.timeline-dot.current {
    background-color: var(--timeline-dot-current); animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(13,110,253,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,110,253,0); }
}

/* --- CARD & UTILITY OVERRIDES --- */
.card {
    border: 1px solid rgba(0,0,0,0.08); border-radius: 0.5rem;
    background-color: #fff; margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05);
}
.card-body { padding: 1.5rem; }

.bg-success-subtle { background-color: #d1e7dd !important; }
.text-success-custom { color: #0f5132 !important; }
.bg-light-subtle { background-color: #f8f9fa !important; }

footer.py-4 {
    background-color: #f8f9fa; padding: 2rem 0;
    margin-top: auto; border-top: 1px solid #e9ecef;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #layoutSidenav_nav { transform: translateX(-225px); }
    #layoutSidenav_content { margin-left: 0; }
    .sb-nav-expanded #layoutSidenav_nav { transform: translateX(0); }
    .navbar-center-rewards { display: none; }
}
