/* Review Detection Styles */

.bg-indigo {
    background-color: var(--theme-colour) !important;
}

.text-indigo {
    color: var(--theme-colour) !important;
}

/* Stat Cards */
.stat-card {
    background: #f8f9fa;
    border: 2px solid var(--theme-colour);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--theme-colour);
}

/* Risk Badges */
.risk-badge-critical {
    color: #dc3545;
    font-weight: bold;
}

.risk-badge-high {
    color: #fd7e14;
    font-weight: bold;
}

.risk-badge-medium {
    color: #ffc107;
    font-weight: bold;
}

.risk-badge-low {
    color: #28a745;
    font-weight: bold;
}

/* Risk Distribution Bars */
.risk-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-label {
    min-width: 80px;
    font-weight: 500;
    font-size: 0.9rem;
}

.risk-bar-container {
    flex: 1;
    background: #e9ecef;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
}

.risk-bar {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.risk-critical {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.risk-high {
    background: linear-gradient(90deg, #fd7e14, #e66e00);
}

.risk-medium {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.risk-low {
    background: linear-gradient(90deg, #28a745, #218838);
}

.risk-count {
    min-width: 40px;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress {
    border: 2px solid var(--theme-colour);
}

.progress-bar.bg-indigo {
    background-color: var(--theme-colour) !important;
}

#progressText {
    font-weight: bold;
    line-height: 25px;
}

/* Table Styling */
.table-hover tbody tr:hover {
    background-color: rgba(101, 2, 236, 0.05);
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.table th {
    background-color: var(--theme-colour);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Input Group Styling */
.input-group .form-control:focus {
    border-color: var(--theme-colour);
    box-shadow: 0 0 0 0.2rem rgba(101, 2, 236, 0.25);
}

/* Textarea Styling */
#reviewText:focus {
    border-color: var(--theme-colour);
    box-shadow: 0 0 0 0.2rem rgba(101, 2, 236, 0.25);
}

/* Badge Styling */
.badge.bg-success {
    font-size: 0.7rem;
}

.badge.bg-warning {
    font-size: 0.7rem;
}

/* Button Styling */
.btn-indigo:hover {
    background-color: #5502c2 !important;
    border-color: #5502c2 !important;
}

.btn-indigo:disabled {
    background-color: #9b59d9 !important;
    border-color: #9b59d9 !important;
}

/* Alert Styling */
.alert-danger {
    border-color: #dc3545;
}

/* Modal Styling */
.modal-header {
    background-color: var(--theme-colour);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 15px;
    }

    .risk-label {
        min-width: 60px;
        font-size: 0.8rem;
    }

    .risk-count {
        min-width: 30px;
        font-size: 0.8rem;
    }

    .table {
        font-size: 0.85rem;
    }
}

/* Animation for loading state */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Icon spacing */
.bi {
    margin-right: 5px;
}
