/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2C3E50;
    --primary-dark: #1A252F;
    --secondary: #16A085;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --border: #BDC3C7;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --shadow: 0 4px 6px -1px rgba(44, 62, 80, 0.1), 0 2px 4px -1px rgba(44, 62, 80, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(44, 62, 80, 0.15), 0 4px 6px -2px rgba(44, 62, 80, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F5F7FA;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-left: 156px;
    /* Space for sidebar */
}


/* Sidebar Navigation */

.navbar {
    background: #2C3E50;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 156px;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-container {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.nav-brand i {
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-actions {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.logout-btn i {
    font-size: 1.1rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
    padding-left: 0.7rem;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Container */

.container {
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 0.4rem 0.5rem 0.5rem;
    min-height: calc(80vh - 50px);
}


/* Loading Spinner */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner.hidden {
    display: none;
}


/* Content Sections */

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
    max-height: calc(130vh - 50px);
    overflow-y: auto;
    padding-right: 1rem;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h1 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


/* Buttons */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-refresh {
    background: var(--primary);
    color: white;
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* Stats Grid */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card[onclick] {
    cursor: pointer;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}


/* Dashboard Grid */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}


/* Cards */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Cards Grid */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    overflow: auto;
    max-height: calc(100vh - 150px);
    padding-bottom: 0;
}

.user-card {
    background: white;
    border-radius: 50%;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 300px;
    max-height: 300px;
    height: 260px;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 160px;
    max-height: 160px;
    height: 160px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid var(--secondary);
}

.user-card:hover,
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.user-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-width: 0;
    text-align: center;
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-width: 0;
    flex-shrink: 1;
}

.user-avatar {
    display: none;
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #16A085;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    flex-shrink: 0;
    min-width: 50px;
    min-height: 50px;
}

.user-info,
.tool-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-info h3 {
    font-size: 1.2rem;
    color: #1A252F;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-weight: 700;
    max-width: 280px;
    line-height: 1.2;
}

.tool-info h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.user-info p {
    color: #7F8C8D;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    font-weight: 500;
    line-height: 1.1;
}

.tool-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.user-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
}

.tool-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.user-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    gap: 0.15rem;
}

.user-stat:last-child {
    flex-basis: 100%;
}

.tool-stat {
    display: flex;
    flex-direction: column;
}

.user-stat span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.2;
}

.tool-stat span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.user-stat span:last-child {
    font-size: 0.7rem;
    color: #7F8C8D;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.tool-stat span:last-child {
    font-size: 0.85rem;
    color: var(--text-light);
}


/* Table */

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: auto;
    max-height: calc(100vh - 150px);
    position: relative;
    margin-bottom: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--primary);
    color: white;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: var(--primary);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}

.table tbody tr:hover {
    background: var(--light);
}

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


/* Search Box */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow);
}

.search-box.large {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-box.large input {
    width: 100%;
    padding-right: 8rem;
}

.search-box.large .btn {
    position: absolute;
    right: 0.5rem;
}


/* Search and Filter Container */

.search-filter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Filter Button */

.btn-filter {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-filter i {
    font-size: 0.9rem;
}


/* Filter Panel */

.filter-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 180px;
    max-width: 250px;
}

.filter-group.triage-checkboxes-group {
    max-width: 100%;
    flex: 1 1 100%;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.filter-group:has(.date-range) {
    flex: 1.5 1 auto;
    min-width: 280px;
    max-width: 380px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input {
    flex: 1;
    min-width: 0;
}

.date-range span {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-input,
.filter-select {
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--text);
    transition: all 0.3s ease;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 107, 192, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

.filter-actions .btn {
    min-width: 100px;
    white-space: nowrap;
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light);
    border-color: var(--text-light);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
}


/* Search Panel */

.search-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}


/* Search Results */

.search-results {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 300px;
    overflow: auto;
    max-height: calc(100vh - 280px);
}

.search-result-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.search-result-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success) !important;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--info) !important;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning) !important;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger) !important;
}


/* False Positive Toggle Buttons */

.mark-fp-btn {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.mark-fp-btn:hover {
    background: #fbbf24;
    color: #78350f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.mark-tp-btn {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.mark-tp-btn:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.mark-fp-btn:active,
.mark-tp-btn:active {
    transform: translateY(0);
}

.toggle-fp-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.toggle-fp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}


/* Triage Modal Styles */

.triage-modal-content {
    max-width: 500px;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.triage-modal-body {
    padding: 1rem;
}

.triage-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.triage-header i {
    font-size: 1.25rem;
    color: var(--primary);
}

.triage-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.triage-file-info {
    background: rgba(99, 102, 241, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.triage-file-info strong {
    color: var(--primary);
}

.triage-current-status {
    background: rgba(251, 191, 36, 0.1);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #d97706;
}

.triage-current-status i {
    font-size: 0.85rem;
}

.triage-status-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.triage-option {
    cursor: pointer;
}

.triage-option input[type="radio"] {
    display: none;
}

.triage-option-card {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.triage-option-card i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.triage-option-card span {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.triage-option-card p {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text-light);
    line-height: 1.2;
}

.verified-option {
    border-color: #22c55e;
}

.verified-option i {
    color: #22c55e;
}

.verified-option span {
    color: #16a34a;
}

.false-positive-option {
    border-color: #f59e0b;
}

.false-positive-option i {
    color: #f59e0b;
}

.false-positive-option span {
    color: #d97706;
}

.ignore-option {
    border-color: #9ca3af;
}

.ignore-option i {
    color: #9ca3af;
}

.ignore-option span {
    color: #6b7280;
}

.resolved-option {
    border-color: #3b82f6;
}

.resolved-option i {
    color: #3b82f6;
}

.resolved-option span {
    color: #2563eb;
}

.triage-option input[type="radio"]:checked+.triage-option-card {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.triage-option input[type="radio"]:checked+.verified-option {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    border-width: 3px;
}

.triage-option input[type="radio"]:checked+.false-positive-option {
    background: rgba(251, 191, 36, 0.1);
    border-color: #f59e0b;
    border-width: 3px;
}

.triage-option input[type="radio"]:checked+.ignore-option {
    background: rgba(156, 163, 175, 0.1);
    border-color: #9ca3af;
    border-width: 3px;
}

.triage-option input[type="radio"]:checked+.resolved-option {
    background: rgba(59, 130, 246, 0.1);
}

.triage-comment-section {
    margin-bottom: 0.75rem;
}

.triage-comment-section label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
}

.triage-comment-section textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.triage-comment-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.triage-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.triage-actions .btn {
    min-width: 80px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}


/* Triage Button on File List */

.triage-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 75px;
}

.triage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.triage-btn:active {
    transform: translateY(0);
}


/* Triage Status Badges */

.triage-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.triage-status-badge.verified {
    background: #22c55e;
    color: white;
}

.triage-status-badge.false-positive {
    background: #f59e0b;
    color: white;
}

.triage-status-badge.ignore {
    background: #9ca3af;
    color: white;
}

.triage-status-badge.resolved {
    background: #3b82f6;
    color: white;
}

.triage-status-badge i {
    font-size: 0.85rem;
}


/* Triage Status Checkboxes */

.triage-status-checkboxes {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: visible;
    width: 100%;
    position: relative;
    z-index: 10;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.checkbox-label:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: var(--primary);
}


/* Empty State */

.user-stat {
    text-align: center;
}

.user-stat .badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

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

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}


/* Timeline */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
}

.timeline-item h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}


/* Analyses Container */

.analyses-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: auto;
    max-height: calc(100vh - 150px);
    padding-bottom: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    overflow: auto;
    max-height: calc(100vh - 150px);
    padding-bottom: 0;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 0.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
}

.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.analysis-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.analysis-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.analysis-text {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.view-more-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-more-btn:hover {
    background: var(--primary-dark);
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    margin: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark);
}


/* Code Block */

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-height: 50vh;
    position: relative;
}

.copy-code-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-code-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.copy-code-btn:active {
    transform: translateY(0);
}


/* Utilities */

.text-muted {
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}


/* Responsive Design */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box input {
        min-width: 200px;
    }
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    .filter-group,
    .filter-group:has(.date-range) {
        min-width: 100%;
        max-width: 100%;
    }
    .filter-actions {
        margin-left: 0;
        width: 100%;
    }
    .filter-actions .btn {
        flex: 1;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}


/* Scrollbar Styling */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}


/* Confirmation Modal */

.confirm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.confirm-modal-content {
    position: relative;
    background: white;
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    text-align: center;
}

.confirm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.confirm-modal-icon.warning {
    background: var(--warning);
    color: white;
}

.confirm-modal-icon.success {
    background: var(--success);
    color: white;
}

.confirm-modal-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

.confirm-modal-content p {
    margin: 0 0 2rem 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.confirm-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel,
.btn-confirm {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-confirm {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* Toast Notification */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 10001;
    animation: slideUp 0.3s ease;
    min-width: 300px;
}

.toast.show {
    display: flex;
}

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Universal Text Wrapping */

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
li,
a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

pre,
code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Prevent text overflow in specific containers */

.modal-content p,
.modal-content div,
.modal-content span,
.modal-content h2,
.modal-content h3,
.card-body p,
.card-body div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}


/* Compact Pagination Footer */

#people-pagination,
#files-pagination,
#tools-pagination,
#analyses-pagination,
#search-pagination {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: #ECF0F1;
    border-top: 2px solid #BDC3C7;
    box-shadow: 0 -2px 10px rgba(44, 62, 80, 0.1);
}

.pagination-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
    background: transparent;
    margin: 0;
}

.pagination-footer button {
    min-width: 150px;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.pagination-footer button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pagination-footer button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* Spinner animation */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fa-spin,
.fa-spinner,
.pagination-footer button .fa-spinner {
    animation: spin 1s linear infinite;
}


/* Code tags wrapping */

code {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    display: inline-block;
    max-width: 100%;
}


/* Modal body specific overrides */

.modal-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.modal-content>* {
    max-width: 100%;
}


/* Ensure all text content wraps */

#modal-body,
#modal-body * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}


/* Filter Loading Overlay */

.filter-loading-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    animation: fadeIn 0.3s ease;
    display: none;
}

.filter-loading-overlay[style*="display: flex"] {
    display: flex !important;
}


/* Elegant multi-ring spinner */

.filter-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.filter-loading-spinner::before,
.filter-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: elegantSpin 1.5s ease-in-out infinite;
}

.filter-loading-spinner::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: elegantSpin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.filter-loading-spinner::after {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 4px solid transparent;
    border-bottom-color: #7E57C2;
    border-left-color: #7E57C2;
    animation: elegantSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

@keyframes elegantSpin {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

.filter-loading-text {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.filter-loading-subtext {
    color: var(--text-light);
    font-size: 0.95rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes fadeInOut {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}


/* Add position relative to containers that need overlay */

.cards-grid,
.table-container,
.analyses-container {
    position: relative;
}


/* Version expand/collapse styles */

.version-chevron {
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.previous-versions-container {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.previous-versions-container .table {
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.previous-versions-container .table th {
    font-size: 0.8rem;
    padding: 0.5rem;
}

.previous-versions-container .table td {
    font-size: 0.85rem;
    padding: 0.5rem;
}

.version-rows {
    background: #f8f9fa;
}

/* ── Gateway Logs ──────────────────────────────────────────────────────────── */

.gateway-tab-content {
    min-height: 300px;
}

.btn-group {
    display: inline-flex;
    gap: 0;
}

.btn-group .btn {
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-size: 0.8rem;
    background: var(--bg);
}

.btn-group .btn:first-child {
    border-radius: 6px 0 0 6px;
}

.btn-group .btn:last-child {
    border-radius: 0 6px 6px 0;
}

.btn-group .gateway-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tool-map-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 4px solid var(--border);
}

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

.tool-map-card.heat-high {
    border-left-color: var(--danger);
}

.tool-map-card.heat-med {
    border-left-color: var(--warning);
}

.tool-map-card.heat-low {
    border-left-color: var(--secondary);
}

.tool-map-card .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.tool-map-card .stat-label {
    color: var(--text-light);
}

.tool-map-card .stat-value {
    font-weight: 600;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-error {
    background: rgba(239, 68, 68, 0.04);
}

.col-ts {
    white-space: nowrap;
    font-size: 0.8rem;
    font-family: monospace;
}

.col-dir {
    text-align: center;
}

/* Gateway expandable log rows */
.gw-log-row {
    cursor: pointer;
    transition: background 0.15s;
}
.gw-log-row:hover {
    background: rgba(99, 102, 241, 0.06);
}
.gw-detail-row {
    display: none;
}
.gw-detail-row.gw-detail-open {
    display: table-row;
}
.gw-detail-row td {
    padding: 0 !important;
    border-top: none !important;
}
.gw-detail-content {
    padding: 16px 24px 20px;
    background: var(--bg-dark, #f8f9fc);
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.detail-block {
    flex: 1 1 300px;
    min-width: 0;
}
.detail-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light, #64748b);
    margin-bottom: 6px;
}
.detail-pre {
    background: var(--bg-main, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.8rem;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
.detail-error .detail-pre {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}
.detail-meta {
    font-size: 0.75rem;
    color: var(--text-light, #64748b);
    padding: 4px 10px;
    background: var(--bg-main, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 4px;
    align-self: flex-start;
}
.col-expand {
    text-align: center;
    width: 32px;
}
.gw-chevron {
    font-size: 0.7rem;
    color: var(--text-light, #94a3b8);
    transition: transform 0.2s;
}
.gw-expanded .gw-chevron {
    transform: rotate(180deg);
}
.dir-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.dir-req {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.dir-res {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Pair badges for req/res pairing */
.pair-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}
.pair-req {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.pair-res {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.pair-complete {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.row-paired {
    border-left: 3px solid #8b5cf6;
}

/* Paired detail: side-by-side grid */
.paired-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
}
.paired-col {
    border-radius: 8px;
    padding: 12px 16px;
}
.paired-req-col {
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.paired-res-col {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.paired-col-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.paired-req-col .paired-col-header {
    color: #3b82f6;
}
.paired-res-col .paired-col-header {
    color: #10b981;
}

@media (max-width: 768px) {
    .paired-detail-grid {
        grid-template-columns: 1fr;
    }
}

.table-header-info {
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}