/* Custom CSS for Tally System */
:root {
    --primary: #4e73df;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --secondary: #858796;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    background-color: #f8f9fc;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card .card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.navbar-brand {
    font-weight: 800;
}

.border-left-primary {
    border-left: 0.25rem solid var(--primary) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger) !important;
}

.table th {
    border-top: none;
    font-weight: 700;
    color: var(--dark);
}

.btn {
    border-radius: 0.35rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 0.35rem;
}

.alert {
    border-radius: 0.35rem;
    border: none;
}

.chart-area, .chart-bar, .chart-pie {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Custom badges */
.badge-status-active {
    background-color: var(--success);
}

.badge-status-inactive {
    background-color: var(--secondary);
}

/* Hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
    transition: all 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom utilities */
.text-xs {
    font-size: 0.7rem;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}