:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding: 15px 0;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: transform 0.2s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-3px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0 !important;
    font-size: 0.95rem;
}

.card-body {
    padding: 15px;
}

.info-card {
    border-left: 3px solid var(--primary-color);
}

.credit-card {
    border-left: 3px solid var(--success-color);
}

.loan-card {
    border-left: 3px solid var(--warning-color);
}

.query-card {
    border-left: 3px solid var(--danger-color);
}

.summary-card {
    border-left: 3px solid #9b59b6;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    background-color: var(--light-bg);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eaeaea;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
}

.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.data-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.data-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.no-data {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
}

.no-data i {
    font-size: 36px;
    margin-bottom: 10px;
    color: #dee2e6;
}

.person-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 10px;
}

.file-name {
    background-color: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.compact-item {
    background-color: white;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.progress {
    height: 6px;
    margin-top: 5px;
}

.account-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.account-item {
    text-align: center;
    flex: 1;
}

.account-count {
    font-size: 1.2rem;
    font-weight: 600;
}

.account-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-key {
    font-weight: 500;
}

.data-val {
    font-weight: 600;
}

@media (max-width: 768px) {
    .compact-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}