/* Navbar Styling */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #1a1e21, #212529);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.navbar-brand i {
    color: #60A5FA;
    font-size: 1.75rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover i {
    transform: scale(1.1);
    color: #3B82F6;
}

.navbar .nav-item {
    margin: 0 0.5rem;
}

.navbar .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
}

.navbar .nav-link i {
    font-size: 1.5rem;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.2);
}

.navbar .nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    color: #60A5FA;
}

.navbar .nav-link:active {
    transform: translateY(0);
}

/* Action buttons styling */
.action-buttons .btn-sm {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    min-width: 32px;
}

.action-buttons {
    min-width: 120px;
}

/* Style the API response modal */
#apiResponseModal pre {
    background-color: #1a1e21;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

#apiResponseModal code {
    color: #e9ecef;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Enhance modal appearance */
.modal-content {
    background-color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress {
    height: 20px;
}

.card {
    margin-bottom: 1rem;
}

.table th {
    white-space: nowrap;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

#validationsTable thead tr:nth-child(2) th {
    padding: 8px;
}

#validationsTable thead tr:nth-child(2) input,
#validationsTable thead tr:nth-child(2) select {
    width: 100%;
    background-color: #2b3035;
    color: #fff;
    border-color: #495057;
}

#validationsTable thead tr:nth-child(2) input::placeholder {
    color: #6c757d;
}

/* More specific selector for replaced rows */
#validationsTable tbody tr.replaced-row,
#validationsTable tbody tr.replaced-row td {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}

/* Ensure hover state maintains visibility */
#validationsTable tbody tr.replaced-row:hover,
#validationsTable tbody tr.replaced-row:hover td {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.2);
}
.img-text-spacing {
    margin-top: 10px !important;
}
/* Add visual feedback for updating state */
tr.updating {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

tr.updating td {
    opacity: 0.7;
}

/* Optimize toggle switch appearance */
.form-check-input {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Specific styling for different toggle types */
.spam-toggle:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.clean-toggle:checked {
    background-color: #198754;
    border-color: #198754;
}

.replaced-toggle:checked {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Style rows based on status */
#validationsTable tbody tr.replaced-row {
    opacity: 0.7;
    background-color: rgba(108, 117, 125, 0.1);
}

/* Company select styling */
.company-select {
    min-width: 150px;
    max-width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
}

.company-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Fix dropdown styling for dark mode */
.company-select option {
    background-color: #2b3035;
    color: #fff;
    padding: 8px 12px;
}

/* Ensure hover state maintains visibility */
.company-select option:hover,
.company-select option:focus,
.company-select option:active,
.company-select option:checked {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* Specific styling for the dropdown list */
.company-select:focus option {
    background-color: #2b3035;
    color: #fff;
}

/* Style for selected option */
.company-select option:checked {
    background-color: #0d6efd;
    color: #fff;
}

/* Custom styles for the select dropdown */
.company-select::-ms-expand {
    display: none;
}

.company-select:focus::-ms-value {
    background-color: transparent;
    color: inherit;
}

/* Add after existing styles */

/* Dashboard Card Styles */
.dashboard-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(26, 32, 44, 0.8), rgba(45, 55, 72, 0.8));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-color: rgba(66, 153, 225, 0.5);
}

.dashboard-card .display-4 {
    font-size: 2.5rem;
    color: #60A5FA;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.dashboard-card:hover .display-4 {
    transform: scale(1.1);
    color: #3B82F6;
}

.dashboard-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.dashboard-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F3F4F6;
    margin-bottom: 1rem;
    text-align: center;
}

.dashboard-card .card-text {
    color: #9CA3AF;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

.dashboard-card[style*="opacity: 0.6"] {
    background: linear-gradient(145deg, rgba(26, 32, 44, 0.4), rgba(45, 55, 72, 0.4));
}

.dashboard-card[style*="opacity: 0.6"]:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Ensure cards maintain equal height */
.row > div {
    display: flex;
    margin-bottom: 1.5rem;
}

.row > div > * {
    flex: 1;
}