:root {
    --brand: #0f5132;
    --brand-dark: #0a3d26;
}

body {
    background-color: #f4f6f8;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.topbar {
    background-color: var(--brand);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-short {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-long {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.85;
    text-transform: uppercase;
}

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

.sidebar {
    width: 250px;
    background-color: #e3f4ea;
    border-right: 1px solid #e3e6ea;
    padding-top: 1rem;
    flex-shrink: 0;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.65rem 1.1rem;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .nav-link i {
    font-size: 1.05rem;
    width: 1.2rem;
}

.sidebar .nav-link:hover {
    background-color: #f1f6f3;
}

.sidebar .nav-link.active {
    background-color: #e7f3ec;
    border-left-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
}

.sidebar .submenu-toggle .submenu-caret {
    font-size: 0.75rem;
    width: auto;
    transition: transform 0.2s ease-in-out;
}

.sidebar .submenu-toggle.collapsed .submenu-caret {
    transform: rotate(-90deg);
}

.sidebar .submenu {
    background-color: #fafcfb;
}

.sidebar .submenu .nav-link {
    padding-left: 2.6rem;
    font-size: 0.92rem;
}

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

/* Supaya baris yang dituju lewat anchor (mis. #jam-12 di Jadwal Mengajar
   setelah simpan/hapus) tidak mepet ke tepi atas layar. */
tr[id^="jam-"] {
    scroll-margin-top: 90px;
}

.stat-card {
    border: none;
    border-radius: 0.6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.app-footer {
    text-align: center;
    font-size: 0.78rem;
    color: #8a938d;
    background-color: #ffffff;
    border-top: 1px solid #e3e6ea;
    padding: 0.75rem 1rem;
}

/* ---------- Login (split-screen) ---------- */

.login-split {
    min-height: 100vh;
    display: flex;
}

.login-left {
    flex: 1 1 70%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #eef7f1 0%, #e3f2e9 100%);
    padding: 2.25rem 3rem;
    display: flex;
    flex-direction: column;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--brand);
    font-size: 1.05rem;
}

.login-brand img {
    height: 34px;
}

.login-heading {
    max-width: 480px;
    margin-top: 2.75rem;
}

.login-heading h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1b2e23;
    line-height: 1.25;
}

.login-heading h1 .accent {
    color: var(--brand);
}

.login-heading p {
    color: #5c6d64;
    margin-top: 0.5rem;
}

.login-illustration-wrap {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 0.5rem 0;
}

.login-illustration-wrap img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.login-illustration-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.login-illustration-stage .illustration-building {
    width: 100%;
    height: auto;
    display: block;
}

.login-illustration-stage .illustration-people {
    position: absolute;
    left: 50%;
    bottom: -3%;
    width: 108%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 14px rgba(15, 81, 50, 0.25));
}

.login-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    border-top: 1px solid rgba(15, 81, 50, 0.12);
    padding-top: 1.1rem;
}

.login-feature-row .feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #3c4d44;
    white-space: nowrap;
}

.login-feature-row .feat i {
    color: var(--brand);
    font-size: 1rem;
}

.login-right {
    flex: 1 1 30%;
    max-width: 100%;
    background: #f4f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-shadow: -6px 0 24px rgba(15, 81, 50, 0.06);
}

.login-right-inner {
    width: 100%;
    max-width: 420px;
}

.login-form-card {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 2.4rem 3rem;
    box-shadow: 0 14px 34px rgba(15, 81, 50, 0.14), 0 3px 10px rgba(15, 81, 50, 0.08);
}

.login-form-card h4 {
    font-weight: 700;
    color: #1b2e23;
    font-size: 1.8rem;
}

.login-form-card h4.login-app-name {
    font-size: 1.2rem;
    white-space: nowrap;
}

.login-form-card p.small {
    font-size: 1rem !important;
}

.login-form-card .form-label {
    font-size: 1.05rem;
}

.login-form-card .form-control,
.login-form-card .input-group-text {
    padding: 0.55rem 0.95rem;
    font-size: 1.05rem;
}

.login-form-card .btn {
    font-size: 1.1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

@media (max-width: 991.98px) {
    .login-left {
        display: none;
    }
    .login-right {
        flex: 1 1 100%;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .login-form-card {
        padding: 1.75rem 1.25rem;
        border-radius: 0.85rem;
    }
    .login-form-card h4.login-app-name {
        font-size: 1.05rem;
        white-space: normal;
    }
    .login-form-card .form-control,
    .login-form-card .input-group-text {
        padding: 0.5rem 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -260px;
        bottom: 0;
        z-index: 1030;
        transition: left .2s ease-in-out;
        overflow-y: auto;
    }
    .sidebar.show {
        left: 0;
    }
}
