/* Rova Data Sync Custom Styles */

/* General */
body {
    background-color: #f8f9fa;
}

/* Cards */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Tables */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

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

/* Navigation */
.navbar-brand i {
    margin-right: 0.5rem;
}

/* Search */
.input-group-lg .form-control {
    font-size: 1rem;
}

/* Customer Detail Page */
.comparison-panel {
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.comparison-panel .card-body {
    padding: 1rem;
}

/* Data Fields */
.data-field {
    margin-bottom: 0.75rem;
}

.data-field label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.data-field .value {
    font-size: 0.95rem;
}

.data-field .value.missing {
    color: #dc3545;
    font-style: italic;
}

/* Match/Mismatch Indicators */
.match-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.match-indicator.match {
    background-color: #198754;
}

.match-indicator.mismatch {
    background-color: #dc3545;
}

.match-indicator.partial {
    background-color: #ffc107;
}

.match-indicator.missing {
    background-color: #6c757d;
}

/* Validation Issues */
.validation-issue {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid;
    background-color: #fff;
    border-radius: 0 0.25rem 0.25rem 0;
}

.validation-issue.critical {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.validation-issue.error {
    border-color: #fd7e14;
    background-color: #fff8f0;
}

.validation-issue.warning {
    border-color: #ffc107;
    background-color: #fffef0;
}

.validation-issue.info {
    border-color: #0dcaf0;
    background-color: #f0fcff;
}

/* Statistics Cards */
.stat-card {
    transition: transform 0.2s ease-in-out;
}

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

/* Risk Level Colors */
.risk-high {
    color: #dc3545;
}

.risk-medium {
    color: #ffc107;
}

.risk-low {
    color: #198754;
}

/* Status Colors */
.status-approved {
    color: #198754;
}

.status-pending {
    color: #ffc107;
}

.status-rejected {
    color: #dc3545;
}

/* PEP Flag */
.pep-flag {
    background-color: #ffc107;
    color: #000;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Comparison Summary */
.comparison-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-stat {
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.comparison-stat .number {
    font-size: 1.5rem;
    font-weight: 600;
}

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

/* Accordion Custom */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Scrollbar Styling */
.comparison-panel::-webkit-scrollbar {
    width: 6px;
}

.comparison-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.comparison-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comparison-panel::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Customer List */
.customer-row {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.customer-row:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Section Headers */
.section-header {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Tooltip */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Print Styles */
@media print {

    .navbar,
    .btn,
    footer {
        display: none !important;
    }

    .card {
        break-inside: avoid;
    }

    .comparison-panel {
        height: auto;
        overflow: visible;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .comparison-panel {
        height: auto;
        margin-bottom: 1rem;
    }

    .stat-card h2 {
        font-size: 1.5rem;
    }
}