/* ========================================
   CoreTax — Custom Styles
   ======================================== */

/* Sidebar Desktop */
.sidebar {
    width: 250px;
    min-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 0.5rem 1rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}
.sidebar-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}
.sidebar-link.active {
    color: #fff !important;
    background: rgba(13,110,253,0.5);
    border-left: 3px solid #0d6efd;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 56px);
    background: #f8f9fa;
}

/* Dashboard Cards */
.card-dashboard {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s ease;
}
.card-dashboard:hover {
    transform: translateY(-2px);
}
.card-dashboard .card-body {
    padding: 1.25rem;
}
.card-dashboard .display-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Input Form Table */
.table-input input[type="text"],
.table-input input[type="number"] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    width: 100%;
    text-align: right;
    font-size: 0.875rem;
}
.table-input input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
    outline: none;
}
.table-input .belum-diisi {
    background-color: #fff3cd;
}
.table-input .total-cell {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Report Tables */
.table-laporan th,
.table-laporan td {
    vertical-align: middle;
}
.table-laporan .row-total {
    font-weight: 700;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}
.table-laporan .row-subtotal {
    font-weight: 600;
    border-top: 1px solid #999;
}
.table-laporan .indent-1 {
    padding-left: 2rem !important;
}
.table-laporan .indent-2 {
    padding-left: 3.5rem !important;
}

/* Color for positive/negative values */
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }

/* Status badges */
.status-filled {
    color: #198754;
    font-weight: 600;
}
.status-empty {
    color: #ffc107;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .d-print-none, .btn, .toast-container {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    .table-laporan {
        font-size: 0.8rem;
    }
    body {
        padding: 0 !important;
    }
    .d-flex {
        display: block !important;
    }
}

/* Toast */
.toast-success {
    background-color: #198754;
    color: #fff;
}

/* Responsive table wrapper */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Year selector */
.year-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
