/* AKAK - Aplikasi Keuangan Al Khidmah */
/* Custom CSS dengan tema emas dan putih */

:root {
    --gold-primary: #d4af37;
    --gold-secondary: #b8941f;
    --gold-light: #f8f5e4;
    --gold-dark: #8b7355;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Text Colors */
.text-gold {
    color: var(--gold-primary) !important;
}

.text-gold-dark {
    color: var(--gold-dark) !important;
}

/* Background Colors */
.bg-gold {
    background-color: var(--gold-primary) !important;
}

.bg-gold-light {
    background-color: var(--gold-light) !important;
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary)) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    color: white;
    font-weight: 500;
}

.btn-gold:hover {
    background-color: var(--gold-secondary);
    border-color: var(--gold-secondary);
    color: white;
}

.btn-outline-gold {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline-gold:hover {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    color: white;
}

/* Login Page */
.login-page {
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-card {
    max-width: 400px;
    border: none;
    border-radius: 15px;
}

.login-card .card-body {
    border-radius: 15px;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

.sidebar {
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: var(--gold-light);
    color: var(--gold-dark);
}

.sidebar .nav-link.active {
    background-color: var(--gold-primary);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

/* Border Left Cards */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--gold-primary);
    color: white;
    font-weight: 500;
    border: none;
}

.table-bordered {
    border: 1px solid #e3e6f0;
}

.table td {
    border-color: #e3e6f0;
    vertical-align: middle;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--gold-light) !important;
    border-color: var(--gold-primary) !important;
    color: var(--gold-dark) !important;
}

/* Forms */
.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Input Groups */
.input-group-text {
    background-color: var(--gold-light);
    border-color: #ced4da;
    color: var(--gold-dark);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid #e3e6f0;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .login-card {
        margin: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Print styles */
@media print {
    .sidebar, .navbar, .btn, .no-print {
        display: none !important;
    }
    
    .main {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Sidebar heading */
.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05rem;
}

/* Custom utilities */
.shadow-sm-custom {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded-custom {
    border-radius: 0.5rem !important;
}

/* Hover effects */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s;
}

/* Status indicators */
.status-active {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-inactive {
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}