/* SBOM Play - Client-Side Application Styles */

:root {
    --primary-color: #50c878;
    --secondary-color: #121212;
    --success-color: #28a745;
    --warning-color: #fdcb52;
    --danger-color: #d63c53;
    --info-color: #466fe0;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    min-height: 100vh;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    /* Color handled by themes.css for theme-aware support */
}

/* Mobile Navigation - Hamburger Menu */
.navbar-toggler {
    border: 1px solid var(--text-primary, #50c878);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(127, 209, 185, 0.3);
}

/* Dark theme hamburger icon (white lines) */
[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Light theme hamburger icon (dark lines) */
[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 30, 30, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar actions container (theme toggle outside hamburger) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop Navigation - ensure proper ordering */
@media (min-width: 992px) {
    .navbar > .container {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        order: 1;
    }
    
    .navbar-collapse {
        order: 2;
        flex: 1;
    }
    
    .navbar-actions {
        order: 3;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Hide hamburger toggler on desktop */
    .navbar-toggler {
        display: none;
    }
}

/* Mobile Navigation Collapse */
@media (max-width: 991.98px) {
    .navbar > .container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .navbar-collapse {
        background-color: var(--bg-secondary, #1e1e1e);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        width: 100%;
        order: 3;
    }
    
    .navbar-actions {
        order: 2;
        margin-left: auto;
    }
    
    .navbar-brand {
        order: 1;
    }
    
    .navbar-nav {
        padding: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
        transition: background-color 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--bg-tertiary, #2a2a2a);
    }
    
    .navbar-nav .nav-link.active {
        background-color: var(--bg-tertiary, #2a2a2a);
    }
}

/* Active nav-link styling - works in both light and dark modes */
/* Using font-weight and underline instead of color to avoid being overridden */
.navbar-nav .nav-link.active,
.navbar .nav-link.active {
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}

/* Ensure theme toggle is always visible */
.theme-toggle {
    flex-shrink: 0;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    /* Background and color handled by themes.css for theme-aware support */
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border: none;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

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

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Progress Bar - Consolidated */
.progress {
    height: 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--light-bg);
    overflow: hidden;
}

/* Progress bar height variants */
.progress-standard {
    height: 1rem;
}

.progress-tall {
    height: 1.5rem;
}

.progress-bar {
    border-radius: 0.75rem;
    background: var(--primary-color);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-initial {
    width: 0% !important;
    transition: width 0.3s ease;
}

.progress-bar-dynamic {
    width: var(--progress-width, 0%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add subtle shimmer effect during progress */
.progress-bar-dynamic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* License pie chart styles */
.license-pie-chart-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

.license-pie-chart {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(var(--pie-gradient));
    position: relative;
}

.license-pie-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--bg-color, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.license-pie-chart-small {
    width: 200px;
    height: 200px;
}

.license-pie-chart-small .license-pie-chart-center {
    width: 100px;
    height: 100px;
}

/* License category link styles */
.license-category-link {
    transition: all 0.2s;
}

.license-category-item {
    border: 2px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}

.license-category-item:hover {
    border-color: var(--category-color, transparent);
    background-color: var(--category-hover-bg, transparent);
}

.license-category-badge {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-color: var(--category-color);
}

.license-legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--legend-color);
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Dependency Chart */
.dependencies-chart {
    margin: 1rem 0;
}

.dependency-bar {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
}

.dependency-bar:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.dependency-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dependency-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.dependency-count {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-left: 1rem;
}

.dependency-progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Tables */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
    background-color: var(--bg-tertiary, var(--light-bg));
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary, #495057);
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--bg-tertiary, var(--light-bg));
    transition: background-color 0.2s ease;
}

/* Badges */
.badge {
    font-size: 0.75em;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.processing-indicator {
    animation: pulse 2s infinite;
}

@keyframes progress-glow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
}

.progress-animated {
    animation: progress-glow 2s infinite;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Status Indicators */
.status-success {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

.status-danger {
    color: var(--danger-color);
}

.status-info {
    color: var(--info-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dependency-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dependency-count {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    footer .row {
        gap: 2rem;
    }
    
    footer .col-md-4 {
        text-align: center;
    }
    
    footer .d-flex.flex-column {
        align-items: center;
    }
    
    footer h6 {
        margin-bottom: 1rem;
    }
    
    footer .btn-outline-primary.btn-sm {
        width: 80%;
        max-width: 200px;
    }
}

/* Header Mobile Responsiveness */
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    /* Make form rows stack on mobile */
    .card-body .row {
        gap: 1rem;
    }
    
    .card-body .row .col-md-4,
    .card-body .row .col-md-6,
    .card-body .row .col-md-8 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Fix button alignment on mobile */
    .d-flex.align-items-end {
        align-items: stretch !important;
        margin-top: 0.5rem;
    }
    
    .d-flex.align-items-end .btn {
        width: 100%;
    }
    
    /* Fix gap utilities on mobile */
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    /* Ensure proper table scrolling */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix alert text size on mobile */
    .alert {
        font-size: 0.9rem;
    }
    
    /* Fix card header padding on mobile */
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    /* Fix stats display on mobile */
    .stats-row .stat-box {
        margin-bottom: 0.5rem;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS Safari viewport issues */
    body {
        min-height: -webkit-fill-available;
    }
    
    /* Prevent iOS zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* SBOM Play Styles - Theme variables are handled by themes.css */

/* General Styles */
body {
    background-color: var(--bg-tertiary);
}

.container {
    max-width: 1200px;
}

/* Alert Styles */
.alert-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alert Container - Fixed position to prevent layout displacement */
.alert-container {
    position: fixed;
    top: 70px; /* Below navbar */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1050; /* Above Bootstrap navbar (z-index 1030) */
    pointer-events: none; /* Allow clicks to pass through container */
    padding: 0 15px;
}

.alert-container .alert {
    pointer-events: auto; /* Re-enable clicks on alerts */
    margin-bottom: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Responsive adjustment for alert container */
@media (max-width: 768px) {
    .alert-container {
        top: 60px;
        padding: 0 10px;
    }
}

/* Dependency Chart */
.dependencies-chart {
    max-height: 300px;
    overflow-y: auto;
}

.dependency-bar {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.dependency-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.dependency-name {
    font-family: monospace;
    font-size: 0.875rem;
    color: #495057;
}

.dependency-count {
    font-weight: bold;
    color: #0d6efd;
}

.dependency-progress {
    height: 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Rate Limit Info */
#rateLimitInfo {
    font-size: 0.875rem;
}

/* Token Status */
#tokenStatus {
    font-size: 0.875rem;
}

/* Organizations Overview */
.organization-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-secondary);
    transition: box-shadow 0.2s ease;
}

.organization-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.organization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.organization-name {
    font-weight: bold;
    color: #495057;
}

.organization-date {
    font-size: 0.875rem;
    color: #6c757d;
}

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

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.25rem;
}

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

.stat-value {
    font-weight: bold;
    color: #495057;
}

.organization-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Detailed View Styles */
.view-header {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.view-header h2 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.text-muted {
    color: #6c757d !important;
}

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

.stat-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.stat-detail {
    font-size: 0.875rem;
    color: #6c757d;
}

.view-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.section {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
}

/* Dependency List */

.dependency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dependency-item:hover {
    background-color: var(--bg-tertiary);
}

.dep-content {
    flex: 1;
    cursor: pointer;
    word-break: break-all;
}

.dep-actions {
    margin-left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dep-name {
    font-family: monospace;
    font-weight: 500;
    color: #495057;
}

.dep-version {
    font-size: 0.875rem;
    color: #6c757d;
}

.dep-count {
    font-weight: bold;
    color: #0d6efd;
    font-size: 0.875rem;
}

/* Repository List */
.repository-list {
    max-height: 400px;
    overflow-y: auto;
}

.repository-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.repository-item:hover {
    background-color: var(--bg-tertiary);
}

/* Archived Repository Styling */
.repository-item.archived-repo {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.repository-item.archived-repo .repo-name {
    color: #6c757d;
}

.repository-item.archived-repo:hover {
    opacity: 0.85;
}

.repo-name {
    font-family: monospace;
    font-weight: 500;
    color: #495057;
}

.repo-deps {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Search Box */
.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Dependency Grid */
.dependency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0.75rem;
}

.dependency-card {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dependency-card:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dependency-card .dep-content {
    flex: 1;
    cursor: pointer;
    word-break: break-all;
}

.dependency-card .dep-actions {
    margin-left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dependency-card .dep-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dependency-card .dep-version {
    font-size: 0.875rem;
    color: #6c757d;
}

.dependency-card .dep-count {
    font-size: 0.75rem;
    color: #0d6efd;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Detail Sections */
.dependency-details,
.repository-details {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.375rem;
}

.info-item label {
    font-weight: 500;
    color: #495057;
}

.info-item span {
    font-family: monospace;
    color: #6c757d;
}

/* Enhancement List */
.enhancement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.enhancement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.enhancement-icon {
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .view-sections {
        grid-template-columns: 1fr;
    }
    
    .dependency-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .enhancement-list {
        grid-template-columns: 1fr;
    }
}

/* Button Styles - Consolidated (base styles already defined above) */

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Scrollbar Styling */
.dependency-list::-webkit-scrollbar,
.repository-list::-webkit-scrollbar,
.dependency-grid::-webkit-scrollbar {
    width: 6px;
}

.dependency-list::-webkit-scrollbar-track,
.repository-list::-webkit-scrollbar-track,
.dependency-grid::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.dependency-list::-webkit-scrollbar-thumb,
.repository-list::-webkit-scrollbar-thumb,
.dependency-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dependency-list::-webkit-scrollbar-thumb:hover,
.repository-list::-webkit-scrollbar-thumb:hover,
.dependency-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Category Breakdown */
.category-breakdown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-card.code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-card.workflow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.category-card.infrastructure {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.category-card.unknown {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.category-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.category-detail {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Language Breakdown */
.language-breakdown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.language-card {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.language-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin: 0.5rem 0;
}

.language-detail {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Dependency Category Badges */
.dep-category {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
    text-transform: uppercase;
    font-weight: bold;
}

.dependency-item.code .dep-category,
.dependency-card.code .dep-category {
    background: #667eea;
    color: white;
}

.dependency-item.workflow .dep-category,
.dependency-card.workflow .dep-category {
    background: #f093fb;
    color: white;
}

.dependency-item.infrastructure .dep-category,
.dependency-card.infrastructure .dep-category {
    background: #4facfe;
    color: white;
}

.dependency-item.unknown .dep-category,
.dependency-card.unknown .dep-category {
    background: #43e97b;
    color: white;
}

/* Repository Category Badges */
.repo-categories {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
}

.badge-code {
    background: #667eea;
    color: white;
}

.badge-workflow {
    background: #f093fb;
    color: white;
}

.badge-infrastructure {
    background: #4facfe;
    color: white;
}

/* Dependency Details Badges */
.badge-code {
    background: #667eea;
    color: white;
}

.badge-workflow {
    background: #f093fb;
    color: white;
}

.badge-infrastructure {
    background: #4facfe;
    color: white;
}

.badge-unknown {
    background: #43e97b;
    color: white;
}

/* Enhanced dependency items with category styling */
.dependency-item.code,
.dependency-card.code {
    border-left: 4px solid #667eea;
}

.dependency-item.workflow,
.dependency-card.workflow {
    border-left: 4px solid #f093fb;
}

.dependency-item.infrastructure,
.dependency-card.infrastructure {
    border-left: 4px solid #4facfe;
}

.dependency-item.unknown,
.dependency-card.unknown {
    border-left: 4px solid #43e97b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .vulnerability-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Vulnerability breakdown */
.vulnerability-breakdown {
    margin: 2rem 0;
    background: var(--bg-tertiary);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
}

.vulnerability-breakdown h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.2rem;
}

.vulnerability-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.vulnerability-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

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

.vuln-stat-card {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

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

.vuln-stat-card.critical {
    border-left: 4px solid #dc3545;
}

.vuln-stat-card.high {
    border-left: 4px solid #fd7e14;
}

.vuln-stat-card.medium {
    border-left: 4px solid #ffc107;
}

.vuln-stat-card.low {
    border-left: 4px solid #20c997;
}

.vuln-stat-card.total {
    border-left: 4px solid #6c757d;
}

.vuln-stat-card.rate {
    border-left: 4px solid #17a2b8;
}

.vuln-stat-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.vuln-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.vuln-detail {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.vulnerable-dependencies {
    margin-top: 1.5rem;
}

.vulnerable-dependencies h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
}

.vulnerable-deps-list {
    display: grid;
    gap: 0.75rem;
}

.vulnerable-dep-item {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.vulnerable-dep-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.vuln-dep-info {
    flex: 1;
    min-width: 0;
}

.vuln-dep-actions {
    flex-shrink: 0;
}

.vuln-dep-name {
    font-weight: 500;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.vuln-dep-count {
    font-size: 0.8rem;
    color: #6c757d;
}

.vuln-severity-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.badge.severity-critical {
    background-color: #dc3545;
    color: white;
}

.badge.severity-high {
    background-color: #fd7e14;
    color: white;
}

.badge.severity-medium,
.badge.severity-moderate {
    background-color: #ffc107;
    color: #212529;
}

.badge.severity-low {
    background-color: #20c997;
    color: white;
}

.badge.severity-unknown {
    background-color: #6c757d;
    color: white;
}

.badge.severity-informational {
    background-color: #17a2b8;
    color: white;
}

/* Clickable Severity Badges */
.clickable-severity-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.clickable-severity-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

.clickable-severity-badge:active {
    transform: scale(0.95);
}

/* Enhanced tooltips for severity badges */
.clickable-severity-badge[title] {
    position: relative;
}

.clickable-severity-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: pre-line;
    z-index: 1000;
    max-width: 300px;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Vulnerability References */
.vulnerability-references {
    margin-top: 0.5rem;
}

.vulnerability-references .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
}

.vulnerability-references .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Top Dependencies Section */
.top-dependencies {
    margin: 2rem 0;
    background: var(--bg-tertiary);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
}

.top-dependencies h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.2rem;
}

/* Top Repositories Section */
.top-repositories {
    margin: 2rem 0;
    background: var(--bg-tertiary);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
}

.top-repositories h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.2rem;
}

/* Repository Grid */
.repository-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.repository-item {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.repository-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.repository-item .repo-name {
    font-weight: 500;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.repository-item .repo-deps {
    font-size: 0.875rem;
    color: #6c757d;
}

/* All Dependencies Section */
.all-dependencies {
    margin: 2rem 0;
    background: var(--bg-tertiary);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
}

.all-dependencies h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.2rem;
}

/* License Analysis Styles */
.license-breakdown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.license-breakdown h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.license-stat-card {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.license-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.clickable-license-card {
    cursor: pointer;
}

.clickable-license-card:hover {
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary);
}

.license-stat-card.active-filter {
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

/* Remove the old ugly text overlay */
.clickable-license-card::after {
    display: none;
}

/* Enhanced license card tooltips */
.license-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.license-card:hover .license-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.license-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 0.9em;
    max-width: 350px;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.license-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2c3e50;
}

.license-tooltip::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(255,255,255,0.1);
}

.license-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-tooltip-header {
    font-weight: 600;
    font-size: 1.1em;
    color: #ecf0f1;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.license-tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.license-tooltip-stat {
    text-align: center;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.85em;
}

.license-tooltip-stat-value {
    font-weight: 600;
    font-size: 1.2em;
    color: #3498db;
    display: block;
}

.license-tooltip-stat-label {
    color: #bdc3c7;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-tooltip-repos {
    max-height: 120px;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
}

.license-tooltip-repo {
    padding: 6px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.85em;
    color: #ecf0f1;
    border-left: 3px solid #3498db;
}

.license-tooltip-repo:last-child {
    margin-bottom: 0;
}

.license-tooltip-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.license-tooltip-click {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.license-tooltip-click:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Scrollbar styling for tooltip */
.license-tooltip-repos::-webkit-scrollbar {
    width: 4px;
}

.license-tooltip-repos::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.license-tooltip-repos::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.license-tooltip-repos::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.license-stat-card.permissive {
    background: var(--bg-success);
    border-color: var(--color-green);
}

.license-stat-card.copyleft {
    background: var(--bg-danger);
    border-color: var(--color-red);
}

.license-stat-card.proprietary {
    background: var(--bg-warning);
    border-color: var(--color-yellow);
}

.license-stat-card.unknown {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.license-stat-card.total {
    background: var(--bg-info);
    border-color: var(--color-blue);
}

.license-stat-card.unlicensed {
    background: var(--bg-danger);
    border-color: var(--color-red);
}

.license-stat-card.transitions {
    background: var(--bg-info);
    border-color: var(--color-blue);
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.license-stat-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.license-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.license-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.license-conflicts {
    margin: 1.5rem 0;
}

.license-conflicts h4 {
    color: var(--color-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.license-conflicts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.license-conflict-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    border-left: 4px solid #dc3545;
    transition: all 0.3s ease;
}

.license-conflict-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.conflict-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conflict-type {
    font-weight: 600;
    color: #dc3545;
    font-size: 0.9rem;
}

.conflict-description {
    color: #495057;
    font-size: 0.9rem;
}

.conflict-licenses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-license {
    background-color: #6c757d;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.high-risk-licenses {
    margin: 1.5rem 0;
}

.high-risk-licenses h4 {
    color: var(--color-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.high-risk-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.high-risk-item {
    padding: 1rem;
    background: var(--bg-warning);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-yellow);
    transition: all 0.3s ease;
}

.high-risk-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.risk-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.risk-name {
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.risk-license {
    color: #ffc107;
    font-size: 0.9rem;
}

.risk-category {
    color: #6c757d;
    font-size: 0.9em;
}

.risk-warnings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.license-recommendations {
    margin: 1.5rem 0;
}

.license-recommendations h4 {
    color: #17a2b8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recommendation-item.warning {
    background: var(--bg-warning);
    border-left: 4px solid var(--color-yellow);
}

.recommendation-item.error {
    background: var(--bg-danger);
    border-left: 4px solid var(--color-red);
}

.recommendation-item.info {
    background: var(--bg-info);
    border-left: 4px solid var(--color-blue);
}

.rec-priority {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.recommendation-item.warning .rec-priority {
    background-color: #ffc107;
    color: #212529;
}

.recommendation-item.error .rec-priority {
    background-color: #dc3545;
    color: white;
}

.recommendation-item.info .rec-priority {
    background-color: #17a2b8;
    color: white;
}

.rec-message {
    color: #495057;
    font-size: 0.9rem;
    flex: 1;
}

/* License info in dependency details */
.license-info {
    margin-top: 1rem;
}

.license-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.license-details > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-details strong {
    min-width: 100px;
    color: var(--text-primary);
}

.license-warnings ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.license-warnings li {
    color: #dc3545;
    font-size: 0.9rem;
}

/* Responsive design for license stats */
@media (max-width: 768px) {
    .license-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .license-stat-card {
        padding: 0.75rem;
    }
    
    .license-number {
        font-size: 1.25rem;
    }
    
    .license-detail {
        font-size: 0.75rem;
    }
    
    .conflict-info,
    .risk-info {
        gap: 0.25rem;
    }
    
    .recommendation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* License Repositories View */
.license-repositories {
    margin-top: 2rem;
}

.license-repos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.license-repo-item {
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.license-repo-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.repo-header h4 {
    margin: 0;
    color: var(--bs-primary);
}

.repo-dependencies {
    margin-bottom: 1rem;
}

.license-dep-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.dep-name {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--bs-dark);
}

.badge-license {
    background: var(--bs-info);
    color: white;
    font-size: 0.75rem;
}

.badge-permissive {
    background: #28a745;
    color: white;
    font-size: 0.75rem;
}

.badge-copyleft {
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
}

.badge-proprietary {
    background: #ffc107;
    color: var(--bs-dark);
    font-size: 0.75rem;
}

.badge-unknown {
    background: #6c757d;
    color: white;
    font-size: 0.75rem;
}

.license-dep-more {
    font-style: italic;
    color: var(--bs-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.repo-actions {
    display: flex;
    justify-content: flex-end;
}

/* Independent Sections */
/* Independent entities (no dependencies) styling */
.independent-entity {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.independent-entity:hover {
    background-color: rgba(13, 110, 253, 0.15) !important;
}

.independent-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--bs-border-color);
}

.independent-section .vulnerability-breakdown,
.independent-section .license-breakdown {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.independent-section .vulnerability-breakdown h3,
.independent-section .license-breakdown h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* License Compliance Details Styles */
.conflict-details,
.high-risk-details,
.recommendation-details {
    margin-top: 20px;
}

.conflict-summary,
.dependency-summary,
.recommendation-summary {
    margin-bottom: 30px;
}

.affected-dependencies,
.related-dependencies {
    margin-bottom: 30px;
}

.dependency-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.dependency-item {
    background: var(--bg-tertiary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.dependency-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.dep-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dep-name {
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.dep-license {
    color: #6c757d;
    font-size: 0.9em;
}

.dep-category {
    color: #6c757d;
    font-size: 0.85em;
    font-style: italic;
}

.dep-risk {
    font-size: 0.85em;
    font-weight: 500;
}

.affected-repositories {
    margin-bottom: 30px;
}

.repository-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.repository-item {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.repository-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.repo-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.repo-dependencies {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.repo-dep-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.repo-dep-item .dep-name {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #495057;
}

.repo-actions {
    margin-top: 15px;
    text-align: right;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.recommendation-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.recommendation-item.warning {
    background: var(--bg-warning);
    border-left-color: #ffc107;
}

.recommendation-item.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.recommendation-item.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.rec-priority {
    font-weight: 600;
    margin-bottom: 5px;
}

.rec-message {
    color: #495057;
    line-height: 1.5;
}

/* Enhanced button styles for license actions */
.conflict-actions,
.risk-actions,
.rec-actions {
    margin-top: 10px;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-outline-warning {
    border-color: #ffc107;
    color: #856404;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* License conflict item enhancements */
.license-conflict-item {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.license-conflict-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.conflict-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conflict-type {
    font-weight: 600;
    color: #dc3545;
    font-size: 1.1em;
}

.conflict-description {
    color: #495057;
    line-height: 1.5;
}

.conflict-licenses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* High-risk license item enhancements */
.high-risk-item {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.high-risk-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.risk-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.risk-name {
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.risk-license {
    color: #ffc107;
    font-weight: 500;
}

.risk-category {
    color: #6c757d;
    font-size: 0.9em;
}

.risk-warnings {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* License issue group styles (new structure) */
/* License Changes Section */
/* License Compliance Tables */
.license-types-section,
.unlicensed-section,
.license-changes-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.license-types-section h4,
.unlicensed-section h4,
.license-changes-section h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.license-types-section .table-responsive,
.unlicensed-section .table-responsive,
.license-changes-section .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.license-types-section table,
.unlicensed-section table,
.license-changes-section table {
    width: 100%;
    table-layout: auto;
    margin-bottom: 0;
}

.license-types-section table td,
.unlicensed-section table td,
.license-changes-section table td {
    word-wrap: break-word;
    word-break: break-word;
    max-width: 0;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.license-types-section table td code,
.unlicensed-section table td code,
.license-changes-section table td code {
    white-space: normal;
    word-break: break-all;
}

.license-types-section .badge,
.unlicensed-section .badge,
.license-changes-section .badge {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    display: inline-block;
}

.license-types-section table thead th,
.unlicensed-section table thead th,
.license-changes-section table thead th {
    font-weight: 600;
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.license-types-section table tbody tr:hover,
.unlicensed-section table tbody tr:hover,
.license-changes-section table tbody tr:hover {
    background-color: var(--bg-tertiary);
    transition: background-color 0.2s ease;
}

.license-changes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.license-change-item {
    background: white;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    transition: all 0.2s ease;
}

.license-change-item:hover {
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.license-change-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffc107;
}

.license-change-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
}

.license-change-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dependency-name {
    font-size: 1.1rem;
}

.dependency-name code {
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1rem;
    color: #856404;
}

.version-comparison {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #ffc107;
}

.version-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

.version-arrow {
    font-size: 1.5rem;
    color: #007bff;
}

.affected-repositories {
    margin-top: 10px;
}

.repositories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-left: 10px;
}

.repo-item {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    transition: all 0.2s ease;
}

.repo-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.repo-link {
    color: #007bff;
    transition: all 0.2s ease;
}

.repo-link:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.repo-link strong {
    font-weight: 600;
}

.dependency-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dependency-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.dependency-link code {
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1rem;
    color: #007bff;
    transition: all 0.2s ease;
}

.dependency-link:hover code {
    background: rgba(0, 123, 255, 0.2);
    color: #0056b3;
}

.license-issue-group {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.license-issue-group:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.license-issue-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.license-issue-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-license {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

.badge-copyleft {
    background-color: #dc3545;
    color: white;
}

.badge-proprietary {
    background-color: #6c757d;
    color: white;
}

.badge-unknown {
    background-color: #ffc107;
    color: #212529;
}

.badge-unlicensed {
    background-color: #dc3545;
    color: white;
}

.repositories-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.repo-group {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid #007bff;
}

.repo-name {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.repo-name i {
    color: #007bff;
}

.packages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 25px;
}

.package-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.package-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.package-link:hover {
    text-decoration: underline;
    color: #0056b3 !important;
}

.package-link code {
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #007bff;
}

.package-link:hover code {
    background: rgba(0, 123, 255, 0.2);
}

/* Recommendation item enhancements */
.recommendation-item {
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommendation-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.rec-priority {
    font-weight: 600;
    color: #495057;
}

.rec-message {
    color: #6c757d;
    line-height: 1.5;
    flex: 1;
    margin-right: 15px;
}

/* Responsive design for detailed views */
@media (max-width: 768px) {
    .dependency-list {
        grid-template-columns: 1fr;
    }
    
    .repository-list {
        grid-template-columns: 1fr;
    }
    
    .high-risk-item,
    .recommendation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .repo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .repo-dep-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* License Repositories Slide-out Panel */
.license-repositories-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid #dee2e6;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.license-repositories-panel.panel-open {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h4 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.panel-content {
    padding: 20px;
}

.license-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.license-panel-stats .stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.license-panel-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 5px;
}

.license-panel-stats .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-panel-repositories,
.license-panel-dependencies {
    margin-bottom: 25px;
}

.license-panel-repositories h5,
.license-panel-dependencies h5 {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* Modal improvements for license details */
.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body .dependency-list,
.modal-body .repository-list {
    max-height: 300px;
    overflow-y: auto;
}

.modal-body .dependency-item,
.modal-body .repository-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.modal-body .repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-body .repo-header h6 {
    margin: 0;
    font-weight: 600;
    color: #495057;
}

.modal-body .repo-dependencies {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-body .repo-dep-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.85rem;
}

.modal-body .repo-actions {
    margin-top: 8px;
    text-align: right;
}

/* Responsive design for slide-out panel */
@media (max-width: 768px) {
    .license-repositories-panel {
        width: 100%;
        right: -100%;
    }
    
    .license-panel-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 10px auto;
    }
}

/* Overlay for slide-out panel */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   EXTRACTED STYLES FROM HTML FILES
   ============================================ */

/* Dependencies Page Styles */
.table-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(0,0,0,0.05);
}

[data-theme="dark"] .sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-icon {
    opacity: 0.3;
    font-size: 0.8em;
    margin-left: 5px;
}

.sort-icon.active {
    opacity: 1;
}

.badge-direct {
    background: var(--color-blue, #0d6efd);
    color: #ffffff;
}

.badge-transitive {
    background: var(--text-secondary, #6c757d);
    color: #ffffff;
}

.clickable-cell {
    cursor: pointer;
    color: var(--color-blue, #0d6efd);
    text-decoration: underline;
}

.clickable-cell:hover {
    color: var(--color-blue, #0a58ca);
    opacity: 0.8;
}

.package-link {
    cursor: pointer;
}

.package-link:hover {
    text-decoration: underline !important;
}

.stats-row {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.stat-box h3 {
    margin: 0;
    color: var(--color-blue, #0d6efd);
}

.stat-box p {
    margin: 5px 0 0 0;
    color: var(--text-secondary, #6c757d);
    font-size: 0.9em;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.loading-spinner {
    text-align: center;
}

.load-more-container {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

[data-theme="dark"] .load-more-container {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Quality Page Styles */
.quality-table {
    font-size: 0.9rem;
}

.quality-table th {
    cursor: pointer;
    user-select: none;
}

.quality-table th:hover {
    background-color: rgba(0,0,0,0.05);
}

.quality-table th.sortable::after {
    content: ' ⇅';
    opacity: 0.3;
}

.quality-table th.sorted-asc::after {
    content: ' ↑';
    opacity: 1;
}

.quality-table th.sorted-desc::after {
    content: ' ↓';
    opacity: 1;
}

.progress.quality-progress {
    height: 20px;
}

.sbom-status-badge {
    font-size: 0.9rem;
}

/* Vulnerability Page Styles */
.vulnerability-summary,
.vulnerability-details {
    line-height: 1.6;
}

.vulnerability-summary p,
.vulnerability-details p {
    margin-bottom: 0.75rem;
}

.vulnerability-summary code,
.vulnerability-details code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

[data-theme="dark"] .vulnerability-summary code,
[data-theme="dark"] .vulnerability-details code {
    background-color: rgba(255, 255, 255, 0.1);
}

.vulnerability-summary pre,
.vulnerability-details pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.75rem 0;
}

[data-theme="dark"] .vulnerability-summary pre,
[data-theme="dark"] .vulnerability-details pre {
    background-color: rgba(255, 255, 255, 0.1);
}

.vulnerability-summary pre code,
.vulnerability-details pre code {
    background-color: transparent;
    padding: 0;
}

.vulnerability-summary ul,
.vulnerability-details ul,
.vulnerability-summary ol,
.vulnerability-details ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.vulnerability-summary li,
.vulnerability-details li {
    margin: 0.25rem 0;
}

.vulnerability-summary a,
.vulnerability-details a {
    color: var(--color-blue, #0d6efd);
    text-decoration: underline;
}

.vulnerability-summary a:hover,
.vulnerability-details a:hover {
    color: var(--color-blue, #0a58ca);
    opacity: 0.8;
}

.vulnerability-summary blockquote,
.vulnerability-details blockquote {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #6c757d;
}

[data-theme="dark"] .vulnerability-summary blockquote,
[data-theme="dark"] .vulnerability-details blockquote {
    border-left-color: rgba(255, 255, 255, 0.2);
    color: #adb5bd;
}

/* Authors Page Dark Mode Styles */
[data-theme="dark"] .modal-content {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .list-group-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .table {
    color: var(--text-primary);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .alert-info {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.4);
    color: #9db4ff;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffecb3;
}

[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-outline-info,
[data-theme="dark"] .btn-outline-danger {
    border-color: currentColor;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.2);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: rgba(108, 117, 125, 0.2);
}

[data-theme="dark"] .btn-outline-info:hover {
    background-color: rgba(13, 202, 240, 0.2);
}

[data-theme="dark"] .btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.2);
}

/* ============================================
   UTILITY CLASSES FOR INLINE STYLES
   ============================================ */

/* Display utilities */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* Cursor utilities */
/* Collapsible card headers */
.card-header.cursor-pointer {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.card-header.cursor-pointer:hover {
    opacity: 0.9;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Text alignment utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Width utilities */
.w-140 {
    width: 140px !important;
}

/* Height utilities */
.h-2rem {
    height: 2rem !important;
}

.h-8px {
    height: 8px !important;
}

.h-20px {
    height: 20px !important;
}

/* Max height utilities */
.max-h-200 {
    max-height: 200px !important;
}

.max-h-400 {
    max-height: 400px !important;
}

/* Overflow utilities */
.overflow-y-auto {
    overflow-y: auto !important;
}

/* Background color utilities */
.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

.bg-tertiary {
    background-color: var(--bg-tertiary) !important;
}

/* Text color utilities */
.text-primary {
    color: var(--text-primary) !important;
}

/* Position utilities */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

/* Author Detection Progress Styles */
.author-detection-progress {
    height: 1.5rem;
}

.author-detection-progress-bar {
    width: 0%;
}

/* Author Map Styles */
.author-map-card {
    display: none;
}

.author-map {
    height: 400px;
    width: 100%;
}

/* Map Popup Styles */
.map-popup-content {
    max-width: 250px;
}

.map-popup-hr {
    margin: 5px 0;
}

/* Upload Drop Zone Styles */
.upload-drop-zone {
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    background-color: var(--bg-secondary, #f8f9fa);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.upload-drop-zone:hover {
    border-color: var(--primary-color, #50c878);
    background-color: var(--bg-tertiary, #e9ecef);
}

.upload-drop-zone.drag-over {
    border-color: var(--primary-color, #50c878);
    background-color: rgba(80, 200, 120, 0.1);
    border-style: solid;
}

.upload-drop-zone i {
    transition: transform 0.2s ease-in-out;
}

.upload-drop-zone:hover i {
    transform: scale(1.1);
}

.upload-drop-zone.drag-over i {
    transform: scale(1.2);
    color: var(--primary-color, #50c878);
}

/* Upload Queue Styles */
.queue-item {
    transition: background-color 0.2s ease;
}

.queue-item:hover {
    background-color: var(--bg-tertiary, #f8f9fa);
}

.queue-item:last-child {
    border-bottom: none !important;
}

.queue-item .remove-queue-item {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.queue-item:hover .remove-queue-item {
    opacity: 1;
}

/* =============================================================================
   Utility Classes (replacing inline styles)
   ============================================================================= */

/* Form select with auto width - used in pagination selectors */
.form-select-auto-width {
    width: auto;
}

/* Progress bar with fixed height - used in debug page */
.progress-h-25 {
    height: 25px;
}

/* Progress bar initial state - width 0% */
.progress-bar-initial {
    width: 0%;
}

/* =============================================================================
   Rate Limit Warning Modal Styles
   ============================================================================= */

/* Modal estimation cards */
#rateLimitEstimation .card {
    border: none;
}

#rateLimitEstimation .card-body h3 {
    font-weight: 600;
}

/* Option cards in modal */
#rateLimitWarningModal .card {
    transition: all 0.2s ease;
    border-color: var(--border-color, #dee2e6);
}

#rateLimitWarningModal .card:hover {
    border-color: var(--primary-color, #50c878);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Background Analysis Banner */
#backgroundAnalysisBanner {
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--info-color, #466fe0);
}

#backgroundAnalysisBanner .progress {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] #backgroundAnalysisBanner {
    background-color: rgba(70, 111, 224, 0.95) !important;
    color: white;
}

[data-theme="dark"] #backgroundAnalysisBanner .progress {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Pulse animation for background analysis spinner */
#backgroundAnalysisBanner .fa-spinner {
    animation: fa-spin 1s infinite linear, pulse 2s infinite ease-in-out;
}

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

/* Modal warning message styling */
#rateLimitWarningMessage {
    border-left: 4px solid var(--warning-color, #fdcb52);
}

#rateLimitWarningMessage strong {
    color: var(--warning-color, #b88c00);
}

/* Rate limit status alert icon alignment */
#rateLimitStatusAlert .fa-info-circle {
    opacity: 0.8;
}

/* Insights page — mini-tooltip (body-rooted, used alongside mini-bars) */
.insights-mini-tooltip {
    position: fixed;
    z-index: 9999;
    padding: 6px 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary, #c9d1d9);
    background: var(--bg-tertiary, #2a2a2a);
    border: 1px solid var(--border-color, #333);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    max-width: 280px;
    white-space: nowrap;
}
.insights-mini-tooltip.show { opacity: 1; }

/* Insights — scrollable table containers */
.insights-scroll-container {
    max-height: 360px;
    overflow-y: auto;
}
.insights-scroll-container.expanded { max-height: none; }

/* Insights — chart canvas container */
.insights-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.insights-chart-wrap canvas {
    max-height: 320px;
}

/* Insights — tech-debt component bar */
.insights-component-bar {
    height: 18px;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Insights — per-repo mini bar */
.insights-mini-bar {
    display: inline-block;
    height: 14px;
    border-radius: 2px;
    min-width: 2px;
} 