/* =====================================================
   WARANGAL DCC BANK - RECOVERY MODULE STYLES
   ===================================================== */

:root {
    --primary: #1a3a5c;
    --primary-light: #2c5282;
    --accent: #e53e3e;
    --success: #38a169;
    --warning: #d69e2e;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

/* Navbar */
.navbar { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-brand { font-weight: 700; font-size: 1rem; }

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border-radius: 10px;
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-2px); }
.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    border-left: 4px solid var(--primary);
    padding: 1rem;
}
.stat-card.npa { border-left-color: var(--accent); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card.npa .stat-value { color: var(--accent); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }

.stat-card .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
}

/* Status Badges */
.badge-npa {
    background-color: var(--accent);
    color: white;
    padding: 0.35em 0.65em;
    border-radius: 4px;
    font-weight: 600;
}
.badge-normal {
    background-color: var(--success);
    color: white;
    padding: 0.35em 0.65em;
    border-radius: 4px;
    font-weight: 600;
}

/* Tables */
.table th {
    background-color: var(--primary);
    color: white;
    font-size: 0.8rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table td {
    font-size: 0.85rem;
    vertical-align: middle;
}
.table-hover tbody tr:hover {
    background-color: #edf2f7 !important;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

/* Account Detail */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.detail-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.detail-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 0.25rem;
}
.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

/* Recovery Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}
.timeline-item.visit::before { background: #4299e1; }
.timeline-item.call::before { background: #48bb78; }
.timeline-item.commitment::before { background: #ed8936; }

/* Upload Section */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(26, 58, 92, 0.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-value { font-size: 1.2rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .table-responsive { font-size: 0.78rem; }
    .navbar-brand span { font-size: 0.85rem; }
    main.container-fluid { padding: 0.5rem; }
}

@media (max-width: 576px) {
    .card { margin-bottom: 0.5rem; }
    .btn { font-size: 0.85rem; }
}

/* Print styles */
@media print {
    .navbar, .btn, .no-print { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Scrollable table wrapper */
.table-scroll {
    max-height: 65vh;
    overflow-y: auto;
}
