/* Cash Pro CRM - Main Stylesheet */

:root {
    --primary-green: #27ae60;
    --primary-green-dark: #229954;
    --primary-green-light: #2ecc71;
    --dark-navy: #1a252f;
    --medium-gray: #34495e;
    --light-gray: #ecf0f1;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(39,174,96,0.2);
    --border-radius: 8px;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

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

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

/* Cards */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 2px solid var(--light-gray);
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3rem;
    margin-right: 20px;
    opacity: 0.8;
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.stat-card-primary .stat-icon { color: #3498db; }
.stat-card-success .stat-icon { color: #27ae60; }
.stat-card-warning .stat-icon { color: #f39c12; }
.stat-card-info .stat-icon { color: #16a085; }

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-new { background: #3498db; color: white; }
.status-documents-pending { background: #f39c12; color: white; }
.status-under-review { background: #e67e22; color: white; }
.status-approved { background: #27ae60; color: white; }
.status-rejected { background: #e74c3c; color: white; }
.status-disbursed { background: #16a085; color: white; }
.status-closed { background: #95a5a6; color: white; }

/* Tables */
.table-responsive {
    border-radius: var(--border-radius);
}

.table thead {
    background-color: var(--light-gray);
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Chart Cards */
.chart-card {
    height: 100%;
}

.chart-card .card-body {
    padding: 20px;
}

/* Page Title */
.page-title {
    color: var(--dark-navy);
    font-weight: 700;
    margin-bottom: 10px;
}

/* Floating Action Button */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-action .btn {
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-action .btn:hover {
    transform: scale(1.1);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #27ae60;
}

.alert-danger {
    border-left-color: #e74c3c;
}

.alert-warning {
    border-left-color: #f39c12;
}

.alert-info {
    border-left-color: #3498db;
}

/* Activity Item */
.activity-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-green);
}

.activity-content {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .floating-action {
        bottom: 20px;
        right: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-in-out;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}
