:root {
    --aace-forest: #006848;
    --aace-forest-dark: #004d35;
    --aace-emerald: #00922D;
    --aace-crimson: #A82028;
    --aace-bg: #f4f7f9;
    --aace-sidebar-width: 265px;
}

body {
    background-color: var(--aace-bg);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

/* Sidebar Navigation */
.aace-wrapper {
    display: flex;
    min-height: 100vh;
}

.aace-sidebar {
    width: var(--aace-sidebar-width);
    background: linear-gradient(180deg, var(--aace-forest) 0%, var(--aace-forest-dark) 100%);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08);
    z-index: 1020;
}

.aace-sidebar-brand {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.aace-sidebar-brand:hover {
    color: #fff;
}

.aace-sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}

.aace-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1rem;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    transition: all 0.18s ease;
}

.aace-nav-link:hover,
.aace-nav-link.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.aace-nav-link.active {
    background-color: var(--aace-emerald);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 146, 45, 0.35);
}

.aace-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aace-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.aace-content {
    padding: 1.5rem;
    flex: 1;
}

/* Cards & Metrics */
.card-aace {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    height: 100%;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.btn-aace {
    background-color: var(--aace-forest);
    border-color: var(--aace-forest);
    color: #ffffff;
    font-weight: 500;
}

.btn-aace:hover {
    background-color: var(--aace-forest-dark);
    border-color: var(--aace-forest-dark);
    color: #ffffff;
}

.student-passport-box {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.student-passport-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passport-crop-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 104, 72, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Cropper Modal */
.cropper-Stage-container {
    max-height: 420px;
    min-height: 280px;
    background: #0f172a;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-Stage-container img {
    max-width: 100%;
    display: block;
}

@media (max-width: 991.98px) {
    .aace-wrapper {
        flex-direction: column;
    }
    .aace-sidebar {
        width: 100%;
    }
}

@media print {
    .no-print,
    .aace-sidebar,
    .aace-topbar {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    .aace-content {
        padding: 0 !important;
    }
}

