body {font-family: Arial, sans-serif; background:#f4f6f8; margin:0;}
/* Base */
html, body {height: 100%;}
body {font-family: 'Inter', Arial, sans-serif; color:#1f2937;}

/* Login Page */
.login-page {
    min-height: 100%;
    background:
        radial-gradient(1000px 500px at 10% 10%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(900px 500px at 85% 5%, rgba(147, 51, 234, 0.18), transparent 60%),
        linear-gradient(145deg, #f8fafc 0%, #eef2ff 45%, #e2e8f0 100%);
}

.login-page .login-wrapper {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 32px;
}

.login-page .login-shell {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-page .login-showcase {
    color: #f8fafc;
    padding: 48px;
    background:
        linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 55%, rgba(51, 65, 85, 0.9) 100%),
        radial-gradient(500px 300px at 80% 20%, rgba(99, 102, 241, 0.2), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.login-page .showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-page .showcase-title {
    margin: 18px 0 12px;
    font-size: 34px;
    line-height: 1.2;
    color: #ffffff;
}

.login-page .showcase-subtitle {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    max-width: 90%;
}

.login-page .showcase-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.login-page .showcase-point i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(30, 41, 59, 0.75);
    color: #c4b5fd;
}

.login-page .showcase-point h3 {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}

.login-page .showcase-point p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(203, 213, 225, 0.9);
}

.login-page .login-card {
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
}

.login-page .login-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 38px 36px 0;
}

.login-page .login-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.login-page .login-kicker {
    margin: 0;
    font-size: 12px;
    color: #4f46e5;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.login-page .login-title {
    margin: 6px 0 0;
    font-size: 24px;
    color: #0f172a;
}

.login-page .login-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.login-page .login-form {
    padding: 26px 36px 6px;
}

.login-page .input-group {
    margin-bottom: 16px;
}

.login-page .input-group label {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-page .input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 11px 12px;
    background: #fbfdff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-page .input-with-icon i {
    color: #64748b;
}

.login-page .input-with-icon input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #0f172a;
}

.login-page .toggle-pass {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
}

.login-page .input-with-icon:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.login-page .login-actions {
    padding: 4px 36px 26px;
}

.login-page .login-public-link {
    padding: 0 36px 20px;
    text-align: center;
}

.login-page .login-public-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    color: #1e3a5f;
    background: #f8fafc;
    font-weight: 700;
    text-decoration: none;
}

.login-page .login-public-link a:hover {
    border-color: #4f46e5;
    color: #3730a3;
    background: #eef2ff;
}

.login-page .btn-primary {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 55%, #7c3aed 100%);
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 600;
    box-shadow: 0 14px 35px rgba(79, 70, 229, 0.34);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.login-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(79, 70, 229, 0.4);
}

.login-page .w-100 {
    width: 100%;
}

.login-page .login-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 36px 28px;
    border-top: 1px solid #eef2ff;
    color: #64748b;
    font-size: 13px;
}

.login-page .login-footer .link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.login-page .login-footer .link:hover {
    text-decoration: underline;
}

.login-page .alert.error {
    margin: 16px 36px 0;
    background: #fee2e2;
    color: #7f1d1d;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 980px) {
    .login-page .login-shell {
        grid-template-columns: 1fr;
    }

    .login-page .login-showcase {
        padding: 34px;
    }

    .login-page .showcase-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .login-page .login-wrapper {
        padding: 18px;
    }

    .login-page .login-showcase,
    .login-page .login-header,
    .login-page .login-form,
    .login-page .login-actions,
    .login-page .login-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .login-page .login-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}
/**
 * ========================================
 * CUSTOM CSS STYLES
 * Sistem Prioritas Perbaikan Jalan
 * ========================================
 */

/* ========== Color Variables ========== */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #27AE60;
    --accent-color: #3498DB;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --light-bg: #ECF0F1;
    --dark-text: #2C3E50;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
}

/* ========== General Styles ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ========== Card Enhancements ========== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
    border: none;
}

.card-header h5, .card-header h6 {
    color: var(--white);
    margin: 0;
}

.card-body {
    padding: 25px;
}

.card-footer {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 12px 12px;
}

/* ========== Stats Cards ========== */
.stats-card {
    border-left: 4px solid var(--accent-color);
    background: white;
}

.stats-card.primary {
    border-left-color: var(--primary-color);
}

.stats-card.success {
    border-left-color: var(--secondary-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card.danger {
    border-left-color: var(--danger-color);
}

.stats-card .card-body {
    padding: 20px;
}

.stats-card .stats-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.stats-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========== Buttons ========== */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background-color: var(--secondary-color);
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* ========== Tables ========== */
.table {
    background-color: white;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: var(--gray-100);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table td {
    vertical-align: middle;
    padding: 12px 15px;
}

/* ========== Badges ========== */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge.rounded-pill {
    padding: 6px 15px;
}

/* ========== Forms ========== */
.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control.is-valid {
    border-color: var(--secondary-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.input-group-text {
    background-color: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 8px 0 0 8px;
}

/* ========== Progress Bars ========== */
.progress {
    height: 25px;
    border-radius: 12px;
    background-color: var(--gray-200);
}

.progress-bar {
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: width 0.6s ease;
}

/* ========== Alerts ========== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
}

/* ========== Pagination ========== */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid var(--gray-300);
}

.page-link:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== DataTables Customization ========== */
.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    padding: 5px 10px;
    border: 1px solid var(--gray-300);
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    padding: 5px 10px;
    border: 1px solid var(--gray-300);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    margin: 0 2px;
}

/* ========== Chart Container ========== */
.chart-container {
    position: relative;
    height: 400px;
    padding: 20px;
}

canvas {
    max-height: 100%;
}

/* ========== Ranking Styles ========== */
.ranking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.ranking-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.ranking-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.ranking-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

.ranking-badge.rank-other {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* ========== Loading Spinner ========== */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.4em;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========== Tooltips ========== */
.tooltip-inner {
    background-color: var(--dark-text);
    border-radius: 6px;
    padding: 8px 12px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .stats-card .stats-icon {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* ========== Print Styles ========== */
@media print {
    body {
        background: white;
    }
    
    .navbar, 
    footer, 
    .breadcrumb, 
    .btn, 
    #scrollToTopBtn,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .table {
        border: 1px solid #ddd;
    }
    
    .table thead th {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ========== Utilities ========== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.shadow-sm-custom {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shadow-md-custom {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.shadow-lg-custom {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ========== Premium Dashboard ========== */
.dashboard-premium {
    padding-bottom: 8px;
}

.dashboard-premium .dashboard-hero {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(125deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 55%, rgba(51, 65, 85, 0.9) 100%),
        radial-gradient(560px 300px at 80% 20%, rgba(99, 102, 241, 0.25), transparent 65%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.dashboard-premium .dashboard-hero .card-body {
    padding: 28px 30px;
}

.dashboard-premium .dashboard-hero-content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.dashboard-premium .dashboard-kicker {
    display: inline-block;
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-premium .dashboard-title {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.2;
}

.dashboard-premium .dashboard-subtitle {
    color: rgba(226, 232, 240, 0.92);
    max-width: 760px;
}

.dashboard-premium .dashboard-hero-cta {
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(52, 152, 219, 0.32);
}

.dashboard-premium .dashboard-stats {
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-premium .dashboard-stats .card-body {
    padding: 22px;
}

.dashboard-premium .dashboard-stats h3 {
    font-size: 2.1rem;
}

.dashboard-premium .dashboard-stats .stats-icon {
    font-size: 2.6rem;
    opacity: 0.2;
}

.dashboard-premium .dashboard-section-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-premium .dashboard-section-card .card-header {
    padding: 14px 18px;
    letter-spacing: 0.2px;
}

.dashboard-premium .dashboard-section-card .card-body {
    padding: 20px;
}

.dashboard-premium .table thead th {
    font-size: 0.8rem;
}

.dashboard-premium .dashboard-quick-actions .btn {
    border-radius: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.dashboard-premium .dashboard-quick-actions .btn i {
    margin-bottom: 10px;
}

.dashboard-premium .dashboard-progress-card .progress {
    border-radius: 999px;
    background: #e2e8f0;
}

.dashboard-premium .dashboard-progress-card .progress-bar {
    border-radius: 999px;
}

@media (max-width: 992px) {
    .dashboard-premium .dashboard-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-premium .dashboard-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard-premium .dashboard-hero .card-body {
        padding: 20px;
    }

    .dashboard-premium .dashboard-subtitle {
        font-size: 0.92rem;
    }

    .dashboard-premium .dashboard-stats h3 {
        font-size: 1.7rem;
    }
}
