/* =========================================================
   REHAVISION - Shared App Styles
   Dipakai oleh semua halaman di dalam aplikasi (sesudah login)
   ========================================================= */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FBF6EC;
    color: #2A4B7C;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Layout dengan Sidebar ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 270px;
    flex-shrink: 0;
    background-color: #5B93B0;
    padding: 40px 22px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 45px;
    padding: 0 6px;
}

.sidebar-logo .logo-icon {
    width: 44px;
    height: 44px;
}

.sidebar-logo .logo-text {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
    background: linear-gradient(90deg, #1F3A5F 0%, #1F3A5F 45%, rgba(31, 58, 95, 0) 100%);
    border-radius: 30px;
    box-shadow: none;
}

/* ===== Konten Utama ===== */
.main-content {
    flex: 1;
    padding: 50px 60px;
    min-width: 0;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    color: #2A4B7C;
}

/* ===== Kartu Umum ===== */
.card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(42, 75, 124, 0.08);
    padding: 30px;
}

/* ===== Tombol Umum ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    padding: 16px 30px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background-color: #5B9BB5;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4A8BA6;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #ffffff;
    color: #5B9BB5;
    border: 2px solid #5B9BB5;
}

.btn-outline:hover {
    background-color: #EFF7FA;
}

.btn-danger {
    background-color: #E15C4F;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #C94B3F;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Status Pill ===== */
.status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    padding: 22px;
    font-size: 26px;
    font-weight: 800;
}

.status-pill.success {
    background-color: #D9EDC0;
    color: #2E4B1F;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 20px;
    }

    .sidebar-logo {
        margin-bottom: 0;
        margin-right: 30px;
        height: 45px;
        width: auto;
        object-fit: contain;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 30px 25px;
    }

    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .sidebar-nav {
        gap: 4px;
    }

    .nav-item {
        font-size: 14px;
        padding: 10px 12px;
    }

    .nav-item span {
        display: none;
    }
}