/* =====================================================
   SISTEM PREDIKSI DROPOUT - STYLESHEET
   ===================================================== */

/* ===== LOGIN PAGE ===== */
.login-body {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
}

.login-card {
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.login-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.login-icon i {
    font-size: 2rem;
    color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ADMIN LAYOUT ===== */
.admin-body {
    background: #f1f5f9;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #1e293b;
    color: #fff;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h5 {
    color: #fff;
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-brand small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: #cbd5e1;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #3b82f6;
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top Navbar */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-navbar .page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.top-navbar .btn-toggle-sidebar {
    display: none;
    border: none;
    background: none;
    font-size: 1.3rem;
    color: #475569;
    padding: 0.25rem 0.5rem;
}

/* Content Wrapper */
.content-wrapper {
    padding: 1.5rem;
}

/* ===== STAT CARDS ===== */
.stat-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.bg-primary-soft {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.stat-icon.bg-danger-soft {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.stat-icon.bg-success-soft {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.stat-icon.bg-warning-soft {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

/* ===== TABLES ===== */
.table-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table-card .table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #334155;
    font-size: 0.875rem;
}

.table-card .table tbody tr:hover {
    background: #f8fafc;
}

/* ===== BADGES ===== */
.badge-risiko {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-risiko.berisiko {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.badge-risiko.tidak-berisiko {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

/* ===== FORMS ===== */
.form-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.form-card .card-body {
    padding: 1.5rem;
}

/* ===== PREDICTION RESULT ===== */
.result-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.result-header {
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.result-header.berisiko {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.result-header.warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.result-header.tidak-berisiko {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.result-probability {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-status {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== CHART CONTAINER ===== */
.chart-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .sidebar-overlay,
    .top-navbar,
    .btn-toggle-sidebar,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-wrapper {
        padding: 0 !important;
    }

    .stat-card,
    .table-card,
    .result-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: #fff !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .top-navbar .btn-toggle-sidebar {
        display: inline-block;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

/* ===== UTILITIES ===== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}
