/* ============================================================
   Platforma Cursuri GURSK — Stiluri Custom
   Culori brand: lime #B0D237 | verde #56883D | verde inchis #2D6733 | very dark #163029
============================================================ */

/* ============================================================
   Variabile CSS
============================================================ */
:root {
    --gursk-lime:        #B0D237;
    --gursk-lime-dark:   #9DC22B;
    --gursk-green:       #56883D;
    --gursk-green-dark:  #2D6733;
    --gursk-darkest:     #163029;
    --gursk-sidebar-bg:  #163029;
    --gursk-sidebar-w:   240px;
    --gursk-topbar-h:    56px;
    --gursk-font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   Global
============================================================ */
* { box-sizing: border-box; }

body {
    font-family: var(--gursk-font);
    background: #f4f6f8;
    color: #1a1a2e;
    font-size: 0.9rem;
    margin: 0;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ============================================================
   SIDEBAR
============================================================ */
.gursk-sidebar {
    width: var(--gursk-sidebar-w);
    min-height: 100vh;
    background: var(--gursk-sidebar-bg);
    flex-shrink: 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-brand {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.brand-name {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gursk-lime);
    letter-spacing: 3px;
    line-height: 1;
}

.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav links */
.gursk-sidebar .nav-link {
    color: rgba(255,255,255,0.65);
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.gursk-sidebar .nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.gursk-sidebar .nav-link:hover,
.gursk-sidebar .nav-link.active {
    color: #fff;
    background: rgba(176,210,55,0.18);
}

.gursk-sidebar .nav-link.active {
    color: var(--gursk-lime);
    font-weight: 600;
}

/* Divider titluri categorii */
.sidebar-divider {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0.9rem 0.85rem 0.25rem;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: var(--gursk-lime);
    color: var(--gursk-darkest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================================
   MAIN AREA
============================================================ */
.gursk-main {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Topbar */
.gursk-topbar {
    height: var(--gursk-topbar-h);
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Content area */
.gursk-content {
    min-height: calc(100vh - var(--gursk-topbar-h));
}

/* ============================================================
   CARDS
============================================================ */
.gursk-card {
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
}

.gursk-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
}

/* ============================================================
   STAT CARDS (Dashboard)
============================================================ */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    opacity: 0.75;
}

.stat-card--green  { background: #e8f5e9; color: #2D6733; border-color: #c8e6c9; }
.stat-card--lime   { background: #f4fbda; color: #6b8c17; border-color: #e0f0a0; }
.stat-card--teal   { background: #e0f2f1; color: #00695c; border-color: #b2dfdb; }
.stat-card--blue   { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.stat-card--orange { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }

/* ============================================================
   BUTOANE
============================================================ */
.btn-gursk-primary {
    background-color: var(--gursk-lime);
    border-color: var(--gursk-lime);
    color: var(--gursk-darkest);
    font-weight: 600;
}

.btn-gursk-primary:hover,
.btn-gursk-primary:focus {
    background-color: var(--gursk-lime-dark);
    border-color: var(--gursk-lime-dark);
    color: var(--gursk-darkest);
}

.btn-gursk-outline {
    border: 2px solid var(--gursk-green);
    color: var(--gursk-green);
    font-weight: 600;
    background: transparent;
}

.btn-gursk-outline:hover {
    background: var(--gursk-green);
    color: #fff;
}

/* ============================================================
   TABELE
============================================================ */
.table > thead > tr > th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    border-bottom: 2px solid #e8ecf0;
    padding: 0.75rem 1rem;
}

.table > tbody > tr > td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover {
    background-color: #f8fdf2;
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--gursk-lime);
    box-shadow: 0 0 0 0.2rem rgba(176,210,55,0.25);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
}

/* ============================================================
   RANK BADGE (Dashboard lectori)
============================================================ */
.rank-badge {
    width: 28px;
    height: 28px;
    background: var(--gursk-lime);
    color: var(--gursk-darkest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================================
   PROGRESS BAR
============================================================ */
.progress-bar.bg-gursk-lime {
    background-color: var(--gursk-lime) !important;
}

/* ============================================================
   CULORI TEXT BRAND
============================================================ */
.text-gursk-green { color: var(--gursk-green) !important; }
.text-gursk-lime  { color: var(--gursk-lime-dark) !important; }
.text-gursk-dark  { color: var(--gursk-darkest) !important; }

/* ============================================================
   RADAR CHART CONTAINER
============================================================ */
.radar-chart-container {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
}

/* ============================================================
   BADGE-URI TIP FORMULAR
============================================================ */
.badge-curs   { background-color: #e3f2fd; color: #1565c0; }
.badge-lector { background-color: #f4fbda; color: #6b8c17; }

/* ============================================================
   PAGINA DE LOGIN (override)
============================================================ */
.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
}

/* ============================================================
   RESPONSIVE — mobil
============================================================ */
@media (max-width: 991.98px) {
    .gursk-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }

    .gursk-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }

    .gursk-main {
        width: 100%;
    }
}

@media (min-width: 992px) {
    #sidebarToggle { display: none; }
}
