:root {
    --sidebar-width: 240px;
    --deped-blue: #0038a8;
}

body {
    background-color: #f4f6f9;
}

/* ---------- Login ---------- */
.login-body {
    background: linear-gradient(135deg, var(--deped-blue), #002766);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 14px;
}
.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ---------- Navbar ---------- */
.app-navbar {
    background-color: var(--deped-blue);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.user-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* ---------- Layout ---------- */
.app-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.app-sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid #e3e6ea;
    flex-shrink: 0;
}

.app-sidebar .nav-link {
    color: #333;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 2px;
}
.app-sidebar .nav-link:hover {
    background-color: #eef2ff;
}
.app-sidebar .nav-link.active {
    background-color: var(--deped-blue);
    color: #fff;
}

.app-content {
    flex-grow: 1;
    padding: 1.25rem;
    width: 100%;
}

.sidebar-backdrop {
    display: none;
}

/* ---------- Status badges ---------- */
.badge-pending { background-color: #f0ad4e; }
.badge-under_investigation { background-color: #5bc0de; }
.badge-returned { background-color: #d9534f; }
.badge-resolved { background-color: #5cb85c; }
.badge-closed { background-color: #6c757d; }

/* ---------- User Guide ---------- */
.user-guide {
    max-width: 900px;
    line-height: 1.7;
}
.user-guide h5 {
    scroll-margin-top: 70px;
}
.user-guide ul,
.user-guide ol {
    padding-left: 1.4rem;
}
.user-guide li {
    margin-bottom: 0.35rem;
}

/* ---------- Print ---------- */
@media print {
    .app-navbar,
    .app-sidebar,
    .sidebar-backdrop,
    .d-print-none {
        display: none !important;
    }
    .app-content {
        padding: 0;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    .app-sidebar {
        position: fixed;
        top: 56px;
        left: -260px;
        bottom: 0;
        z-index: 1040;
        transition: left 0.25s ease;
        overflow-y: auto;
    }
    .app-sidebar.show {
        left: 0;
        box-shadow: 2px 0 8px rgba(0,0,0,.15);
    }
    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 56px 0 0 0;
        background: rgba(0,0,0,.35);
        z-index: 1035;
    }
    .app-content {
        padding: 1rem;
    }
}
