:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #34495e;
    --kpo: #9b59b6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Login Styles */

.login-body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section .logo {
    font-size: 3rem;
    margin-bottom: 10px;
}

.logo-section h1 {
    color: var(--primary);
    margin-bottom: 5px;
}

.logo-section p {
    color: var(--dark);
    opacity: 0.7;
}


/* Header */

.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    text-align: right;
}

.user-role {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Main Content */

.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}


/* Sidebar */

.sidebar {
    width: 250px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--secondary);
    color: white;
}


/* Content Area */

.content {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--primary);
    margin-bottom: 10px;
}


/* Forms */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}


/* Buttons */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #bdc3c7;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}


/* Cards */

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    color: var(--primary);
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 5px;
}

.card-desc {
    color: var(--dark);
    opacity: 0.7;
}


/* Summary Cards */

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-cards .card {
    text-align: center;
}


/* Tables */

.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f8ff;
}


/* Special Rows */

.sub-row td:first-child {
    padding-left: 30px;
    font-style: italic;
}

.highlight {
    background-color: #fff9e6 !important;
    font-weight: 600;
}

.kpo-row {
    background-color: #f0e6f5 !important;
    font-weight: 700;
}


/* Number formatting */

.number-cell {
    font-family: 'Courier New', monospace;
    text-align: right;
}

.negative {
    color: var(--danger);
}

.positive {
    color: var(--success);
}


/* Alerts */

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Filters */

.filters {
    background-color: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.filter-form .form-row {
    align-items: flex-end;
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
}


/* Role Badges */

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-admin {
    background-color: var(--danger);
    color: white;
}

.role-kpo {
    background-color: var(--kpo);
    color: white;
}

.role-cabang {
    background-color: var(--secondary);
    color: white;
}


/* Status Badges */

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: var(--success);
    color: white;
}

.status-badge.inactive {
    background-color: var(--danger);
    color: white;
}


/* Responsive */

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .user-details {
        text-align: center;
    }
    .summary-cards {
        grid-template-columns: 1fr;
    }
}


/* Data Input Sections */

.data-input-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.data-input-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}


/* Credit Details Grid */

.credit-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.credit-input-group {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.credit-input-group h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.credit-input-group .form-group {
    margin-bottom: 15px;
}

.credit-input-group label {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}


/* NPL Calculation */

.npl-calculation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.npl-calculation h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.calculation-results {
    margin-bottom: 20px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-item label {
    font-weight: 600;
    color: var(--dark);
}

.calc-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
}

.calc-formula {
    background: #fff9e6;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--warning);
    font-size: 0.9rem;
    line-height: 1.4;
}


/* Data Input Table */

.data-input-table {
    overflow-x: auto;
}

.data-input-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-input-table th,
.data-input-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.data-input-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-input-table th:first-child,
.data-input-table td:first-child {
    text-align: left;
    min-width: 200px;
}

.data-input-table .number-input {
    width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
}

.data-input-table .account-input {
    width: 100%;
    padding: 8px;
    border: none;
    background: transparent;
    font-weight: 600;
}

.data-input-table .sub-row td:first-child {
    padding-left: 30px;
    font-style: italic;
}


/* Responsive */

@media (max-width: 768px) {
    .credit-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .data-input-table table {
        font-size: 0.8rem;
    }
    .data-input-table .number-input {
        width: 80px;
    }
}


/* Calculation Info Box */

.calculation-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-bottom: 20px;
}

.calculation-info ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.calculation-info li {
    margin-bottom: 5px;
    color: var(--dark);
}


/* Enhanced number input styling */

.number-input:read-only {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
    font-weight: bold;
}

.number-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}


/* Better table styling */

.data-input-table .sub-row {
    background-color: #f8f9fa;
}

.data-input-table .sub-row td {
    border-color: #dee2e6;
}


/* Improved calculation results */

.calculation-results {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-bottom: 15px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-item label {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.calc-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-size: 1.2rem;
    min-width: 150px;
    text-align: right;
}


/* Form actions styling */

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}


/* Responsive improvements */

@media (max-width: 768px) {
    .credit-details-grid {
        grid-template-columns: 1fr;
    }
    .calc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .calc-value {
        min-width: auto;
        text-align: left;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
}


/* Credit Input Percentage */

.input-percentage {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}


/* Credit input group improvements */

.credit-input-group .form-group {
    position: relative;
    margin-bottom: 20px;
}

.credit-input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.credit-input-group .number-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
}

.credit-input-group .number-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}


/* NPL input styling */

.npl-input {
    border-left: 4px solid #e74c3c !important;
}


/* Enhanced calculation results */

.calculation-results {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    margin-bottom: 15px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calc-item:last-child {
    margin-bottom: 0;
}

.calc-item label {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
    font-size: 1rem;
}

.calc-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-size: 1.3rem;
    min-width: 180px;
    text-align: right;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}


/* Calculation formula box */

.calc-formula {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--warning);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #856404;
}

.calc-formula strong {
    color: var(--dark);
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}


/* Form actions improvements */

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #e9ecef;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}


/* Responsive improvements */

@media (max-width: 768px) {
    .credit-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .calc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    .calc-value {
        min-width: auto;
        text-align: left;
        width: 100%;
        font-size: 1.1rem;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .input-percentage {
        font-size: 0.7rem;
    }
}


/* Highlight for calculated fields */

input[readonly] {
    background-color: #e9ecef !important;
    border-color: #6c757d !important;
    color: #495057 !important;
    font-weight: 600 !important;
}


/* Animation for calculated values */

.calc-value {
    transition: all 0.3s ease;
}

.calc-value:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Dashboard Styles */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-info h3 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
}

.stat-info p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}


/* Dashboard Sections */

.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.dashboard-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
    font-size: 1.4rem;
}


/* Performance Grid */

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.performance-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
}

.performance-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.metric-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
}

.metric-value.positive {
    color: var(--success);
}

.metric-value.negative {
    color: var(--danger);
}


/* NPL Monitoring */

.npl-table-container {
    overflow-x: auto;
}

.npl-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.npl-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.npl-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.npl-table .number {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.npl-table .high-risk {
    color: var(--danger);
    font-weight: bold;
}

.npl-table .medium-risk {
    color: var(--warning);
    font-weight: bold;
}

.npl-table .low-risk {
    color: var(--success);
}


/* Status Badges */

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.high-risk {
    background: #f8d7da;
    color: var(--danger);
}

.status-badge.medium-risk {
    background: #fff3cd;
    color: #856404;
}

.status-badge.low-risk {
    background: #d1ecf1;
    color: #0c5460;
}


/* Charts */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.chart-container h4 {
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}


/* Recent Activities */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.activity-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.activity-value {
    font-weight: 600;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
}

.activity-period {
    color: var(--dark);
    opacity: 0.7;
}

.activity-time {
    color: var(--dark);
    opacity: 0.7;
    font-size: 0.9rem;
}


/* Quick Actions */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.action-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-content h4 {
    color: var(--primary);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.action-content p {
    margin: 0;
    color: var(--dark);
    opacity: 0.8;
    font-size: 0.9rem;
}


/* No Data State */

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--dark);
    opacity: 0.7;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.no-data p {
    margin: 0;
    font-size: 1.1rem;
}


/* Responsive Design */

@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    .performance-grid {
        grid-template-columns: 1fr;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .chart-container {
        padding: 15px;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .activity-details {
        flex-direction: column;
        gap: 5px;
    }
    .stat-card {
        padding: 20px;
    }
    .stat-info h3 {
        font-size: 1.8rem;
    }
}


/* Animation for dashboard elements */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section {
    animation: fadeIn 0.6s ease-out;
}

.quick-stats .stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.quick-stats .stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.quick-stats .stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.quick-stats .stat-card:nth-child(4) {
    animation-delay: 0.4s;
}


/* Style untuk number cells dengan Rupiah penuh */

.number-cell {
    font-family: 'Courier New', monospace;
    text-align: right;
    font-size: 0.9rem;
    white-space: nowrap;
}


/* Untuk tabel dengan data Rupiah penuh */

.data-table .number-cell,
.npl-table .number {
    font-family: 'Courier New', monospace;
    text-align: right;
    padding: 8px 12px;
}


/* Metric values dengan Rupiah penuh */

.metric-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Activity values dengan Rupiah penuh */

.activity-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Responsive adjustment untuk Rupiah penuh */

@media (max-width: 768px) {
    .number-cell,
    .metric-value,
    .activity-value {
        font-size: 0.8rem;
    }
    .data-table .number-cell {
        padding: 6px 8px;
    }
}


/* Print styles untuk Rupiah penuh */

@media print {
    .number-cell,
    .metric-value,
    .activity-value {
        font-family: 'Courier New', monospace !important;
        font-size: 10pt !important;
    }
}


/* Neraca & Laba Rugi Styles */

.neraca-cabang {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.neraca-cabang h3 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}


/* Print Styles */

@media print {
    .sidebar,
    .filters,
    .btn {
        display: none !important;
    }
    .main-content {
        display: block !important;
    }
    .content {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .dashboard-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    .quick-stats {
        display: flex !important;
        justify-content: space-between;
    }
    .stat-card {
        background: #f8f9fa !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}


/* Status Badge Colors */

.status-badge.positive {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.negative {
    background: #f8d7da;
    color: #721c24;
}


/* Chart Container Improvements */

.chart-container {
    position: relative;
    height: 300px;
}


/* Filter Improvements */

.filter-form .form-row {
    align-items: end;
}

.filter-form .form-group {
    margin-bottom: 0;
}


/* NPL Import Styles */
.upload-section {
    margin-bottom: 2rem;
}

.upload-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.format-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.format-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.format-example pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.import-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.import-preview h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #bdc3c7;
    border-radius: 4px;
    background: #f8f9fa;
    transition: border-color 0.3s;
}

.form-group input[type="file"]:hover {
    border-color: #3498db;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #eff8ff;
    border: 1px solid #b8daff;
    color: #004085;
}

/* Enhanced NPL Styles */
.filter-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-select, .form-input {
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 150px;
}

.periode-info {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
}

/* Enhanced NPL Table */
.npl-table .count {
    text-align: center;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.summary-item .label {
    font-weight: 600;
    color: #2c3e50;
}

.summary-item .value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.summary-item .value.negative {
    color: #c62828;
}

/* Kualitas Badge Colors */
.status-badge.kualitas-1 { background: #27ae60; color: white; }
.status-badge.kualitas-2 { background: #f39c12; color: white; }
.status-badge.kualitas-3 { background: #e67e22; color: white; }
.status-badge.kualitas-4 { background: #e74c3c; color: white; }
.status-badge.kualitas-5 { background: #c0392b; color: white; }

.periode-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.periode-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.periode-badge {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Print Styles */
@media print {
    .sidebar, .filter-section, .btn {
        display: none;
    }
    
    .npl-summary {
        box-shadow: none;
        border: 1px solid #000;
    }
}
