:root {
    --bs-body-bg: var(--deloitte-cool-gray-9);
    --bs-body-color: var(--deloitte-white);
    --user-msg-bg: var(--deloitte-green);
    --bot-msg-bg: var(--deloitte-cool-gray-8);
    --deloitte-dark-green: var(--deloitte-green-6);
    --deloitte-light-green: var(--deloitte-green-5);
    --deloitte-accent: var(--deloitte-green-4);
    --panel-width: 250px;

    /* RGB values for opacity */
    --white-rgb: 255, 255, 255;
    --athena-bg-primary: rgba(0, 255, 136, 0.1);
    --athena-card-bg: transparent;
    --athena-card-borders: rgb(4, 106, 56);
    --athena-input-bg: rgba(0, 255, 136, 0.1);
    --athena-button-primary: #3b82f6;
    --athena-button-success: #10b981;
    --athena-button-secondary: rgba(74, 85, 104, 0.3);
    --athena-text-primary: #e2e8f0;
    --athena-text-secondary: #9ca3af;
    --athena-chat-bg: rgba(45, 55, 72, 0.8);
    --athena-message-user: rgba(59, 130, 246, 0.8);
    --athena-message-agent: rgba(30, 30, 46, 0.95);
    --athena-skeleton-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-image: url("../images/Group5.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--deloitte-cool-gray-9);
}

.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.nav-panel {
    width: var(--panel-width);
    min-width: 250px;
    max-width: 300px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-bottom: 7px;
    margin: 5px;
    flex-shrink: 0;
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    position: relative;
    z-index: 2;
}

/* Style the dotlottie web component */
.lottie-container dotlottie-wc {
    filter: none
    /* This adjusts the colors to match your green palette */
}

.agent-loading-indicator-enhanced.thinking .lottie-container {
    animation: lottie-glow 2s ease-in-out infinite alternate;
}

.agent-loading-indicator-enhanced.connecting .lottie-container {
    animation: lottie-pulse 1.5s ease-in-out infinite;
}

.agent-loading-indicator-enhanced.processing .lottie-container {
    animation: lottie-rotate 3s linear infinite;
}

.agent-loading-indicator-enhanced.ready-state .lottie-container {
    transform: scale(1.1);
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.6),
        inset 0 0 25px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.8);
}

.completion-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 16px;
    animation: pulse-effect 1s ease-out;
    pointer-events: none;
}

@keyframes pulse-effect {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

@keyframes lottie-glow {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes lottie-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes lottie-rotate {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(10deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loading-content-enhanced {
        gap: 0.5rem;
    }
    
    .loading-icon-enhanced {
        width: 60px;
        height: 60px;
    }
    
    .lottie-container {
        width: 60px;
        height: 60px;
    }
    
    .main-text-enhanced {
        font-size: 0.85rem;
    }
    
    .sub-text-enhanced {
        font-size: 0.7rem;
    }
    
    .stage span {
        font-size: 0.7rem;
    }
}
/* Remove the old brain emoji styles since we're replacing it */
.brain-emoji {
    display: none;
}

.loading-text-enhanced {
    flex: 1;
    text-align: left;
    padding-left: 1rem; /* Increased from 0.5rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-text-enhanced {
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 700; /* Bolder */
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px; /* More spacing */
    line-height: 1.2;
}

.sub-text-enhanced {
    font-size: 0.85rem; /* Slightly larger */
    color: rgba(255, 255, 255, 0.8); /* More opaque */
    line-height: 1.3;
    margin: 0;
    font-weight: 500; /* Medium weight */
}

.project-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.project-selector-wrapper .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00ff88;
    margin: 0;
    white-space: nowrap;
}

#vulnerability-project-selector {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#vulnerability-project-selector:focus {
    background-color: #4b5563;
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
    color: #ffffff;
}

#vulnerability-project-selector option {
    background-color: #374151;
    color: #ffffff;
}

/* Use Bootstrap row/col structure instead of custom grid */
.row .col-md-6 {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 1rem !important;
}

/* Common Square Styling */
.remediation-progress-square {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    max-width: 1000px !important;
    height: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.quick-actions-square {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    max-width: 600px !important;
    height: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}





/* Section Headers */
.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h6 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Intelligence Insights Content */
.insights-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.insight-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.insight-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.insight-value {
    color: #00ff88;
    font-weight: 700;
    font-size: 1rem;
}

.insight-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.insight-trend.up {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.insight-trend.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.insight-trend.stable {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

/* AI Email Templates */
.email-templates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.email-template {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-template:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.template-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.template-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.template-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.template-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.template-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.email-template:hover .template-action {
    background: rgba(0, 123, 255, 0.3);
    color: #fff;
}

.section-header h6 i {
    color: #49bad8 !important;
    font-size: 1rem;
}

/* Progress Items */
.progress-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(75, 85, 99, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.progress-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

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

/* Theme Colors for Progress Labels */
.remediation-progress-square .text-success {
    color: #00ff88 !important;
}

.remediation-progress-square .text-warning {
    color: #f59e0b !important;
}

.remediation-progress-square .text-danger {
    color: #ef4444 !important;
}

.remediation-progress-square .text-muted {
    color: #9ca3af !important;
    font-size: 0.75rem;
}

/* Progress Bars with Theme Colors */
.remediation-progress-square .progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.remediation-progress-square .progress-bar.bg-success {
    background: linear-gradient(90deg, #00ff88, #10b981) !important;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

.remediation-progress-square .progress-bar.bg-warning {
    background: linear-gradient(90deg, #f59e0b, #d97706) !important;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.remediation-progress-square .progress-bar.bg-danger {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* Quick Actions Grid */
.actions-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Quick Action Buttons */
.quick-actions-square .btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(75, 85, 99, 0.3);
    color: #e5e7eb;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    gap: 0.5rem;
}

.quick-actions-square .btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quick-actions-square .btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.3);
}

/* Button Icon */
.quick-actions-square .btn i {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.quick-actions-square .btn:hover i {
    transform: scale(1.1);
}

/* Specific Button Hover Colors */
.quick-actions-square .btn-outline-primary:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

.quick-actions-square .btn-outline-success:hover {
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.quick-actions-square .btn-outline-warning:hover {
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.quick-actions-square .btn-outline-info:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
}

/* UNIQUE INTELLIGENCE INSIGHTS PANEL - NO CONFLICTS */
.vuln-insights-panel-unique {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    max-width: 600px !important;
    height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.vuln-insights-panel-unique .insights-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    margin-top: 0.75rem;
}

.vuln-insights-panel-unique .insight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.vuln-insights-panel-unique .insight-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.vuln-insights-panel-unique .insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vuln-insights-panel-unique .insight-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vuln-insights-panel-unique .insight-title {
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
}

.vuln-insights-panel-unique .insight-value {
    color: #00ff88;
    font-size: 1rem;
    font-weight: 700;
}

.vuln-insights-panel-unique .insight-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.vuln-insights-panel-unique .insight-trend.up {
    color: #00ff88;
}

.vuln-insights-panel-unique .insight-trend.warning {
    color: #f59e0b;
}

.vuln-insights-panel-unique .insight-trend.stable {
    color: #3b82f6;
}

/* UNIQUE AI GENERATED EMAILS PANEL - NO CONFLICTS */
.vuln-emails-panel-unique {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    max-width: 600px !important;
    height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.vuln-emails-panel-unique .email-templates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    margin-top: 0.75rem;
}

.vuln-emails-panel-unique .email-template {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.vuln-emails-panel-unique .email-template:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.vuln-emails-panel-unique .template-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vuln-emails-panel-unique .email-template .template-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vuln-emails-panel-unique .email-template .template-title {
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
}

.vuln-emails-panel-unique .email-template .template-desc {
    color: #9ca3af;
    font-size: 0.8rem;
}

.vuln-emails-panel-unique .email-template .template-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vuln-emails-panel-unique .email-template:hover .template-action {
    background: rgba(0, 123, 255, 0.3);
    color: #fff;
}

/* Email Loading Overlay */
.email-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.email-loading-content {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.email-loading-content .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #00ff88;
}

.email-loading-content p {
    margin: 0;
    font-size: 1.1rem;
    color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 968px) {
    .bottom-sections-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .remediation-progress-square,
    .quick-actions-square,
    .intelligence-insights-square,
    .ai-emails-square {
        width: 100%;
        max-width: 500px;
        aspect-ratio: auto;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .bottom-sections-container {
        margin-top: 1rem;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .remediation-progress-square,
    .quick-actions-square,
    .intelligence-insights-square,
    .ai-emails-square {
        padding: 1rem;
        min-height: 200px;
        max-width: none;
    }
    
    .quick-actions-square .btn {
        padding: 0.6rem;
        font-size: 0.8rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .quick-actions-square .btn i {
        font-size: 1rem;
    }
    
    .progress-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vulnerability-management-container .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .project-selector-wrapper {
        order: -1;
        align-items: center;
        width: 100%;
    }
    
    #vulnerability-project-selector {
        width: 100%;
        max-width: 200px;
    }
}

.nav-panel-header {
    padding: 15px;
    height: 60px;
    border-bottom: 1px solid var(--deloitte-dark-green);
    text-align: left;
    border: 0px solid var(--deloitte-dark-green);
    border-radius: 5px;
    margin: 0;
    flex-shrink: 0;
}

.nav-panel-content {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    border: 2px solid var(--deloitte-dark-green);
    border-radius: 5px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Important for flex child scrolling */
}

.nav-panel-toggle {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--deloitte-dark-green);
    color: white;
    border: none;
    width: 30px;
    height: 60px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-panel-toggle:hover {
    background-color: var(--deloitte-accent);
    width: 35px;
    right: -20px;
}

.nav-panel-toggle:active {
    background-color: rgba(0, 255, 136, 0.1);
}

.nav-panel.collapsed {
    width: 30px;
    min-width: 30px;
    border-right: none;
}

.nav-panel.collapsed .nav-panel-content,
.nav-panel.collapsed .nav-panel-header {
    display: none;
}

.agent-dashboard-container,
.dashboard-panel {
    backdrop-filter: blur(5px); /* Reduced from 25px */
    -webkit-backdrop-filter: blur(5px);
}

.nav-panel-content,
.chat-container,
.dashboard-container {
    backdrop-filter: blur(10px); /* Reduced from 25px */
    -webkit-backdrop-filter: blur(10px);
}

.nav-panel.collapsed .nav-panel-toggle {
    right: 0;
    border-radius: 5px 0 0 5px;
    background-color: rgba(var(--white-rgb), 0.85);
    border: 1px solid var(--deloitte-dark-green);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
}

.content-area {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    padding: 0;
    padding-bottom: 2px;
    margin: 5px;
    position: relative;
    flex: 1;
}

.chat-header {
    height: 60px;
    padding: 15px;
    text-align: right;
    color: var(--deloitte-white);
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    margin: 0 5px;
}

.chat-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 10px;
    overflow-y: auto;
    margin: 0px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    display: none; /* Hide chat by default */
    width: calc(100% - 10px); /* Account for margins */
    height: calc(100% - 60px); /* Subtract header height */
    box-sizing: border-box;
}

.dashboard-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
    margin: 0px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    display: block; /* Show by default */
    height: calc(100% - 60px); /* Subtract header height */
    width: calc(100% - 10px); /* Account for margins */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.dashboard-container.active {
    display: block;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 50%;
    position: relative;
    color: var(--deloitte-white);
}

.user-message {
    background-color: rgba(45, 55, 72, 0.7) !important;
    margin-left: auto;
    border-top-right-radius: 3px;
    color: #ffffff;
    border-radius: 20px 20px 20px 20px !important;
    max-width: 20% !important;
    min-height: 100px !important;
    font-size: 1.2rem;
}

.bot-message {
    background-color: rgba(45, 55, 72, 0.7) !important;
    margin-right: auto;
    border-top-left-radius: 3px;
    color: white;
    min-width: 50px !important;
    border-radius: 20px 20px 20px 20px !important;
    font-size: 1.2rem;
}

.message-input-container {
    align-items: stretch;
    background-color: rgba(var(--black-rgb), 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 5px;
    padding: 5px;
    border: 2px solid var(--deloitte-dark-green);
    margin: 5px 5px 5px 5px;
    resize: vertical;
    min-height: 60px;
    max-height: 200px;
    display: none;
    width: calc(100% - 10px); /* Account for margins */
    box-sizing: border-box;
}

#message-input {
    background-color:white;
    border: none;
    color: black;
    resize: vertical; /* Allow vertical resizing */
    min-height: 40px;
    max-height: 150px;
    overflow-y: auto;
    flex-grow: 1; /* Allow input to expand */
    margin-right: 10px; /* Add space between input and button */
}

#message-input:focus {
    box-shadow: none;
    background-color: white;
    color: black;
}

#message-input::placeholder {
    color: black;
}

.send-button {
    background-color: var(--deloitte-dark-green);
    color: var(--deloitte-white);
    border: none;
    align-self: center; /* Center-align the button vertically */
    margin-right: 10px; /* Right-align the button horizontally */
}

.send-button:hover {
    background-color: var(--deloitte-accent);
}

#vulnerabilities-table-body tr {
    cursor: pointer !important;
    pointer-events: auto !important;
}

#vulnerabilities-table-body tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

vulnerability-controls .form-control:focus,
.vulnerability-controls .form-select:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
}

.vulnerability-row:hover {
    background-color: rgba(0, 255, 136, 0.05);
}

.row-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.pagination .page-link {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.pagination .page-link:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background-color: #00ff88;
    border-color: #00ff88;
    color: #000000;
}

.pagination .page-item.disabled .page-link {
    background-color: #1f2937;
    border-color: #374151;
    color: #6b7280;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background-color: var(--deloitte-red);
    color: white;
}

.status-progress {
    background-color: var(--deloitte-yellow);
    color: black;
}

.status-closed {
    background-color: var(--deloitte-green);
    color: black;
}

/* .thinking-status {
    position: absolute;
    top: -30px;
    left: 0;
    background-color: var(--deloitte-dark-green);
    color: var(--deloitte-white);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8em;
    display: none;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thinking-status.active {
    display: block;
}

.thinking-status .status-item {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 5px;
    background-color: var(--deloitte-cool-gray-6);
    border-radius: 4px;
}

.thinking-status .status-item.active {
    background-color: var(--deloitte-light-green);
    color: var(--deloitte-dark-green);
} */

.badge.bg-danger { background-color: #dc3545 !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.badge.bg-info { background-color: #17a2b8 !important; }
.badge.bg-success { background-color: #28a745 !important; }

/* Tooltip-like behavior for agent scores */
.agent-score {
    position: relative;
    cursor: help;
}

.agent-score: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: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Loading state for CloudWatch integration */
.cloudwatch-loading::after {
    content: "⟳";
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    opacity: 0.7;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .agent-performance-item .agent-name small {
        font-size: 0.65rem;
    }
}

.trace-container {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--cool-gray-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--deloitte-dark-green);
    display: none;
    position: relative;
    width: 100%;
    max-width: 80%;
    margin-right: auto;
}

.trace-container.expanded {
    display: block;
}

.trace-content {
    color: #e2e8f0;
}

.trace-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid #4a5568;
}

.trace-section h6 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.trace-section pre {
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
    margin: 0;
}

.trace-section details {
    margin-top: 0.5rem;
}

.trace-section summary {
    cursor: pointer;
    color: #cbd5e0;
    font-size: 0.85rem;
    padding: 0.25rem;
}

.trace-section summary:hover {
    color: #00ff88;
}

.trace-step {
    margin-bottom: 10px;
    padding: 8px;
    background-color: black;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 5px;
    border-left: 3px solid var(--deloitte-light-green);
}

.trace-step-header {
    color: var(--deloitte-light-green);
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.trace-step-detail-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

.trace-step-detail-button:active {
    transform: translateY(0);
}

.trace-step-content {
    color: var(--deloitte-cool-gray-2);
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    display: none;
    margin-top: 5px;
    padding: 5px;
    background-color: rgba(var(--blue-4), 0.95);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 3px;
}

.trace-step.expanded .trace-step-content {
    display: block;
}

.trace-step-debug-button {
    background-color: #ffc107 !important;
    color: var(--deloitte-white);
    border: none;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    margin-left: 10px;
}

.trace-step-debug-button:hover {
    background-color: var(--deloitte-accent);
}

.trace-toggle {
    color: var(--teal-7);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
    margin-top: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.trace-toggle:hover {
    color: var(--deloitte-accent);
}

.trace-debug-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--deloitte-dark-green);
    color: var(--deloitte-white);
    border: none;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
}

.trace-debug-button:hover {
    background-color: var(--deloitte-accent);
}

.trace-debug-view {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: var(--deloitte-cool-gray-9);
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.8em;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.trace-debug-view.visible {
    display: block;
}

.nav-panel select {
    width: 100%;
    margin-bottom: 10px;
    background-color: var(--deloitte-cool-gray-11);
    color: var(--deloitte-white);
}

.nav-panel label {
    display: block;
    margin-bottom: 5px;
    color: var(--deloitte-light-green);
}

.nav-panel .form-check {
    margin-bottom: 15px;
}

.nav-panel .form-check-label {
    color: var(--deloitte-light-green);
}

.nav-item {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--deloitte-cool-gray-8);
    color: var(--teal-5);
}

.nav-item.active {
    background-color: var(--deloitte-green-5);
    color: var(--deloitte-white);
    font-weight: 600;
}

.nav-item i {
    margin-right: 10px;
}

/* Add divider between main nav and quick links */
/* .nav-item[data-panel="query-library"] {
    margin-top: 15px;
    /*border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
} */

.content-panel {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.content-panel.active {
    display: flex;
}

.dashboard-panel {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid var(--deloitte-dark-green);
    /* height: 100%; */
    min-height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.d-flex.justify-content-between.align-items-center.mb-3 {
    margin-bottom: .2rem;
    margin-top: -5px;
}

.dashboard-panel > * {
    flex-shrink: 0;
}

.dashboard-panel .dashboard-main-content {
    flex-shrink: 1; /* Allow main content to shrink if needed */
}

.dashboard-panel h5 {
    color: var(--deloitte-light-green);
    margin-bottom: 10px;
}

.dashboard-main-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    flex: 1;
    overflow: hidden;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    min-width: 0; /* Prevent overflow issues */
    overflow-y: auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    flex-shrink: 0;
    max-height: 200px;
}

.stat-item {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
}

.stat-value {
    font-size: 1.5em;
    color: var(--deloitte-light-green);
    font-weight: bold;
}

.stat-label {
    font-size: 0.8em;
    color: var(--deloitte-white);
}

.dashboard-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 1px solid var(--deloitte-dark-green);
    flex-shrink: 0; /* ADDED: Prevent shrinking */
}

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

.dashboard-section h6 {
    color: var(--deloitte-light-green);
    margin-bottom: 10px;
}

.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-list li {
    padding: 8px;
    border-bottom: 1px solid var(--deloitte-dark-green);
}

.dashboard-list li:last-child {
    border-bottom: none;
}

.dashboard-link {
    color: var(--deloitte-light-green);
    text-decoration: none;
    display: block;
    padding: 8px;
    transition: color 0.3s ease;
}

.dashboard-link:hover {
    color: var(--deloitte-accent);
    text-decoration: underline;
}

.health-score {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    margin-right: 10px;
}

.health-score.good {
    background-color: var(--deloitte-green);
    color: black;
}

.health-score.warning {
    background-color: var(--deloitte-yellow);
    color: black;
}

.health-score.critical {
    background-color: var(--deloitte-red);
    color: white;
}

.alarm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--deloitte-dark-green);
}

.alarm-item:last-child {
    border-bottom: none;
}

.alarm-severity {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.alarm-severity.high {
    background-color: var(--deloitte-red);
    color: white;
}

.alarm-severity.medium {
    background-color: var(--deloitte-yellow);
    color: black;
}

.alarm-severity.low {
    background-color: var(--deloitte-green);
    color: black;
}

.system-prompt-container {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(var(--white-rgb), 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 5px;
    border: 1px solid var(--deloitte-dark-green);
}

.system-prompt-container pre {
    color: #ddd;
    font-size: 0.9em;
    white-space: pre-wrap;
    margin: 0;
}

.prompt-toggle {
    color: var(--deloitte-light-green);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}

.prompt-toggle:hover {
    color: var(--deloitte-accent);
}

.mode-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-radius: 5px; /* Rounded edges */
    overflow: hidden;
    background-color: var(--deloitte-cool-gray-7);
}

.form-select {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--deloitte-white);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    
    /* Add the dropdown arrow back */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    padding-right: 2.5rem; /* Make room for the arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select:focus {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border-color: var(--deloitte-accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
    outline: none;
}

/* Fix for Windows dropdown option backgrounds */
.form-select option {
    background-color: #374151 !important;
    color: var(--deloitte-white) !important;
    border: none !important;
}

.mode-tab {
    flex-grow: 1;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    color: var(--deloitte-white);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.mode-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.mode-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.mode-tab.active {
    background: linear-gradient(135deg, var(--deloitte-accent), var(--deloitte-light-green));
    color: #000;
    border-color: var(--deloitte-accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.mode-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Chat History Button - Make it consistent */
#chat-history-nav .mode-tab {
    width: 100%;
    background: var(--deloitte-cool-gray-11);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--deloitte-white);
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#chat-history-nav .mode-tab:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border-color: var(--deloitte-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

#chat-history-nav .mode-tab i {
    font-size: 1rem;
}

.mode-tab:hover {
    background-color: var(--deloitte-light-green);
}

.resize-handle {
    height: 2px;
    background-color: var(--deloitte-black);
    cursor: ns-resize;
    position: relative;
    z-index: 10;
}

.section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 5px;
}

.section-header {
    color: var(--deloitte-light-green);
    margin-bottom: 12px; /* Reduced back to original */
    font-size: 0.85rem; /* Reduced from 0.95rem to be more subtle */
    font-weight: 500; /* Reduced from 600 to be less bold */
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced from 1px */
    position: relative;
    padding-bottom: 8px; /* Reduced from 12px */
    padding-left: 0; /* Removed left padding */
    opacity: 0.9; /* Added slight transparency for subtlety */
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px; /* Reduced from 40px */
    height: 1px; /* Reduced from 3px to be more subtle */
    background: rgba(0, 255, 136, 0.4); /* More transparent */
    border-radius: 1px;
}

/* Add a subtle glow effect */
.section-header::before {
    display: none;
}

/* Agent Dashboard Styles */
.agent-dashboard-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
    margin: 0px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    /* FIXED: Proper height calculation */
    height: calc(100vh - 70px); /* Account for header and margins */
    max-height: calc(100vh - 70px);
    width: calc(100% - 10px);
    box-sizing: border-box;
    display: none;
}

.agent-dashboard-container .dashboard-panel {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid var(--deloitte-dark-green);
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    max-height: 100%;
    overflow-y: auto; /* KEEP: Allow the entire panel to scroll */
}

/* 3. Fix execution chart section */
.dashboard-section:has(#execution-chart) {
    height: auto; /* Changed from 400px to auto */
    margin-bottom: 20px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 1px solid var(--deloitte-dark-green);
    padding: 15px;
}

#execution-chart {
    height: auto !important; /* Changed from 340px to auto */
    width: 100% !important;
}

.agent-intelligence-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333;
    margin-bottom: 20px;
    /* CHANGED: Remove fixed height and scrolling, let it expand naturally */
    height: auto;
    min-height: 200px; /* Minimum height for content visibility */
    max-height: none; /* REMOVED: No max height restriction */
    overflow-y: visible; /* CHANGED: No internal scrolling */
    flex-shrink: 0;
}

/* Fix intelligence cards to expand naturally too */
.intelligence-card {
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 15px;
    height: auto; /* CHANGED: Let it be natural height */
    min-height: 120px; /* Reduced minimum */
    max-height: none; /* REMOVED: No max height restriction */
    display: flex;
    flex-direction: column;
    overflow: visible; /* CHANGED: No internal scrolling */
}

.intelligence-card .card-body {
    padding: 15px;
    flex: 1;
    overflow-y: visible; /* CHANGED: No internal scrolling */
    min-height: 0;
}

/* Quality metrics styling */
.quality-metric {
    margin-bottom: 15px;
}

.metric-label {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 5px;
}

.metric-bar {
    position: relative;
    background: #444;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a86b, #28a745);
    transition: width 0.8s ease;
    border-radius: 10px;
}

.metric-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #fff;
    font-weight: bold;
}

/* Performance agents list */
.performance-agents {
    max-height: 120px; /* Keep it compact */
    overflow-y: auto;
    min-height: 80px;
}

.agent-performance-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-performance-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.agent-performance-item .agent-name small {
    font-size: 0.7rem;
    margin-top: 2px;
}

.agent-performance-item:last-child {
    border-bottom: none;
}

.agent-name {
    font-weight: 500;
    color: #e0e0e0;
}

.response-excellent { color: #00ff88 !important; }
.response-good { color: #17a2b8 !important; }
.response-fair { color: #ffc107 !important; }
.response-poor { color: #dc3545 !important; }

/* Enhanced Metric Fill Classes */
.metric-fill.bg-success {
    background: linear-gradient(90deg, #00a86b, #28a745) !important;
}
.metric-fill.bg-warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14) !important;
}
.metric-fill.bg-danger {
    background: linear-gradient(90deg, #dc3545, #c82333) !important;
}

.agent-score {
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 12px;
    background: #28a745;
    color: white;
}

/* Activity timeline */
.activity-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px; /* Reduced height */
    overflow-x: auto;
    padding: 5px 0;
}

.activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00a86b;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent dots from shrinking */
}

.activity-dot.active {
    width: 16px;
    height: 16px;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 168, 107, 0.5);
}

.activity-dot.recent {
    animation: pulse 3s infinite;
}

.activity-dot.recent,
.metric-fill,
.loading-spinner {
    will-change: transform, opacity;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Bottom section layout fixes */
row:last-child {
    margin-bottom: 0;
    padding-bottom: 20px;
    flex-shrink: 0; /* ADDED: Prevent shrinking */
    min-height: 400px; /* ADDED: Ensure minimum height */
}

/* Agent list and session list container fixes */
/* Fix the main content area */
.dashboard-main-content {
    flex: 1;
    overflow: hidden; /* CHANGED from visible */
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    min-height: 0; /* ADDED: Important for flex child */
}

/* Fix the row that contains agent list and sessions */
.dashboard-main-content .row {
    flex: 1;
    margin: 0;
    min-height: 0; /* ADDED */
    max-height: 400px; /* ADDED: Prevent overflow */
    display: flex;
}

.dashboard-main-content .col-md-4,
.dashboard-main-content .col-md-8 {
    padding: 10px;
    /* CHANGED: Remove fixed height, use flex instead */
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* IMPORTANT: Allows proper shrinking */
    max-height: 380px; /* ADDED: Prevent individual columns from overflowing */
}

.dashboard-main-content .dashboard-section {
    margin-bottom: 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 1px solid var(--deloitte-dark-green);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* IMPORTANT */
    max-height: 350px; /* ADDED: Prevent section overflow */
    overflow: hidden; /* ADDED: Hide any overflow */
}

.dashboard-main-content .dashboard-section h6 {
    color: var(--deloitte-light-green);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.row {
    flex: 1;
    margin: 0;
}

.col-md-4, .col-md-8 {
    padding: 10px;
    height: auto; /* CHANGED from 100% to auto */
    min-height: 400px; /* ADDED: Ensure minimum height */
    display: flex;
    flex-direction: column;
}


/* Agent list styling */
.agent-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    /* CHANGED: Reduce max-height to fit better */
    max-height: 300px;
    min-height: 200px; /* ADDED: Ensure minimum height */
}

.agent-list-item,
.session-item,
.trace-step,
.intelligence-card {
    /* Enable hardware acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.agent-list-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-list-item:hover {
    background: #333;
    border-color: #555;
}

.agent-list-item.active {
    background: #1a4b3a;
    border-color: #28a745;
}

/* Session list styling */
.session-list {
    flex: 1;
    overflow-y: auto;
    /* CHANGED: Reduce max-height to fit better */
    max-height: 300px;
    min-height: 200px; /* ADDED: Ensure minimum height */
}


.session-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-details {
    flex: 1;
}

.session-id {
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.session-time {
    font-size: 0.9em;
    color: #ccc;
}

.session-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin: 0 10px;
}

.session-actions {
    flex-shrink: 0;
}

.btn-view-trace {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-view-trace:hover {
    background: #218838;
}

.agent-intelligence-panel .row:last-child {
    margin-top: 15px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .agent-dashboard-container {
        height: calc(100vh - 60px);
        padding: 15px;
    }
    
    .dashboard-section:has(#execution-chart) {
        height: 220px;
    }
    
    #execution-chart {
        height: 180px !important;
    }
    
    .agent-intelligence-panel {
        height: 300px;
        max-height: 300px;
        padding: 15px;
    }
    
    .intelligence-card {
        min-height: 120px;
        max-height: 140px;
    }
    
    .dashboard-main-content .col-md-4,
    .dashboard-main-content .col-md-8 {
        height: auto;
        margin-bottom: 20px;
    }
}


/* Scrollbar styling for dark theme */
.agent-list::-webkit-scrollbar,
.session-list::-webkit-scrollbar,
.performance-agents::-webkit-scrollbar,
.activity-timeline::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.agent-list::-webkit-scrollbar-track,
.session-list::-webkit-scrollbar-track,
.performance-agents::-webkit-scrollbar-track,
.activity-timeline::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.agent-list::-webkit-scrollbar-thumb,
.session-list::-webkit-scrollbar-thumb,
.performance-agents::-webkit-scrollbar-thumb,
.activity-timeline::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.agent-list::-webkit-scrollbar-thumb:hover,
.session-list::-webkit-scrollbar-thumb:hover,
.performance-agents::-webkit-scrollbar-thumb:hover,
.activity-timeline::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.agent-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.agent-list-item {
    padding: 10px;
    border-bottom: 1px solid var(--deloitte-cool-gray-7);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.agent-list-item:hover {
    background-color: rgba(var(--white-rgb), 0.1);
}

.agent-list-item.active {
    background-color: rgba(var(--deloitte-green-rgb), 0.2);
    border-left: 3px solid var(--deloitte-green);
}

.session-list {
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    padding: 10px;
    border-bottom: 1px solid var(--deloitte-cool-gray-7);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-item:hover {
    background-color: rgba(var(--white-rgb), 0.1);
}

.session-details {
    display: flex;
    flex-direction: column;
}

.session-id {
    font-size: 0.8em;
    color: var(--deloitte-cool-gray-3);
}

.session-time {
    font-size: 0.8em;
    color: var(--deloitte-cool-gray-4);
}

.btn-view-trace {
    background-color: var(--deloitte-dark-green);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
}

.btn-view-trace:hover {
    background-color: var(--deloitte-accent);
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid var(--deloitte-green);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Query Library container */
.query-library-container {
    flex-grow: 1;
    background: linear-gradient(135deg, 
    rgba(17, 24, 39, 0.95) 0%, 
    rgba(31, 41, 55, 0.95) 50%, 
    rgba(15, 23, 42, 0.98) 100%);
    color: var(--deloitte-white);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    margin: 0px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    height: calc(100% - 60px); /* Subtract header height */
    width: calc(100% - 10px); /* Account for margins */
    box-sizing: border-box;
    display: none; /* Hidden by default */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Logging Roadmap Styles */
.logging-roadmap-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
    margin: 5px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    display: none; /* Hidden by default */
    height: calc(100% - 60px); /* Subtract header height */
    width: calc(100% - 10px); /* Account for margins */
    box-sizing: border-box;
}

/* Vulnerability Management Styles */
.vulnerability-management-container {
    position: relative;
    z-index: 2000;
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
    margin: 5px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    display: none; /* Hidden by default */
    isolation: isolate;
    height: calc(100% - 60px); /* Subtract header height */
    width: calc(100% - 10px); /* Account for margins */
    box-sizing: border-box;
}

/* Shared styles for vulnerability, monitoring, and alert tables */
.vulnerability-management-container .table {
    color: var(--deloitte-white);
    background-color: rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.vulnerability-management-container .table th {
    border-color: var(--deloitte-cool-gray-7);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--deloitte-light-green);
}

.vulnerability-management-container .table td {
    border-color: var(--deloitte-cool-gray-7);
}

/* Service status pills */
.service-status {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
}

.service-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.service-status .status-indicator.healthy {
    background-color: var(--deloitte-green);
}

.service-status .status-indicator.warning {
    background-color: var(--deloitte-yellow);
}

.service-status .status-indicator.critical {
    background-color: var(--deloitte-red);
}

.service-status .service-name {
    flex-grow: 1;
}

.service-status .service-metric {
    font-size: 0.9em;
    color: var(--deloitte-cool-gray-4);
}

.roadmap-timeline {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.roadmap-phase {
    flex: 1;
    border: 1px solid var(--deloitte-dark-green);
    border-radius: 5px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
}

.roadmap-phase h6 {
    margin-bottom: 15px;
    color: var(--deloitte-green);
    font-weight: bold;
    border-bottom: 1px solid var(--deloitte-dark-green);
    padding-bottom: 10px;
}

.roadmap-phase .list-group-item {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: var(--deloitte-cool-gray-7);
    color: var(--deloitte-white);
    margin-bottom: 8px;
    border-left: 3px solid var(--deloitte-green);
}

.roadmap-phase .list-group-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .roadmap-timeline {
        flex-direction: column;
    }
    
    .roadmap-phase {
        margin-bottom: 20px;
    }
}

/* Configuration Container Styles */
.configuration-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
    margin: 5px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    display: none; /* Hidden by default */
    height: calc(100% - 60px); /* Subtract header height */
    width: calc(100% - 10px); /* Account for margins */
    box-sizing: border-box;
}

.configuration-container .dashboard-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.configuration-container .configuration-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex child scrolling */
}

.configuration-container .table-responsive {
    flex: 1;
    min-height: 0; /* Important for flex child scrolling */
    overflow-y: auto;
}

.configuration-container .table {
    margin-bottom: 0;
}

.configuration-container .table thead {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.configuration-container .table th {
    border-color: var(--deloitte-cool-gray-7);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--deloitte-light-green);
    padding: 0.5rem;
    white-space: nowrap;
}

.configuration-container .table td {
    border-color: var(--deloitte-cool-gray-7);
    vertical-align: middle;
    padding: 0.5rem;
}

.configuration-container .btn {
    margin: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    min-width: 60px;
}

/* Security Hub Findings Table Styles */
#security-hub-findings-table {
    font-size: 0.875rem;
    margin-bottom: 0;
}

#security-hub-findings-table th {
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#security-hub-findings-table td {
    padding: 0.5rem;
    vertical-align: middle;
}

#security-hub-findings-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Severity level colors */
.text-danger.fw-bold {
    font-weight: 700 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

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

/* Compliance status colors */
.text-success {
    color: #198754 !important;
} 

.remediation-progress {
    min-width: 300px; /* or whatever width works */
    flex: 1 1 auto;
}

.progress-bar-container {
    min-width: 250px;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.modal-dialog {
    pointer-events: auto;
    z-index: 1060;
}

.modal-content .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1;
    position: relative;
}

.modal-header .btn-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1061;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 2% auto;
    padding: 0;
    z-index: 1060;
    position: relative;
    border: 1px solid #444;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #1e3a2e, #2d5a3d);
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.modal-header h4 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.close {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 1;
}

/* Modal Body */
.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    color: #fff;
    pointer-events: auto !important;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #555;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 30px;
    gap: 2px;
}

.tab-button {
    background: transparent;
    border: none;
    color: #bbb;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab-button.active {
    background: #00ff88;
    color: #000;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Vulnerability Table */
.vulnerability-table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vulnerability-table th,
.vulnerability-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.vulnerability-table th {
    background: #333;
    color: #00ff88;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.vulnerability-table tr:hover {
    background: rgba(0, 255, 136, 0.1);
}

.vulnerability-table td {
    color: #fff;
}

.vulnerability-count {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Environment List */
.environment-list {
    margin-top: 20px;
}

.environment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--deloitte-cool-gray-7);
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.environment-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--deloitte-green);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.environment-label {
    color: var(--deloitte-white);
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 140px;
    flex-shrink: 0;
}

/* Progress bar text overlay */
.environment-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Alternative: If you want the percentage to show outside the bar */
.environment-score {
    color: var(--deloitte-light-green);
    font-size: 0.85rem;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.environment-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.environment-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

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

.environment-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #00ff88;
}

.environment-stat-label {
    font-size: 12px;
    color: #bbb;
    text-transform: uppercase;
}

/* Progress Bars */
.progress-bars {
    max-width: 600px;
}

.progress-item {
    margin-bottom: 25px;
}

.progress-item label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill.remediated {
    background: linear-gradient(90deg, #00ff88, #00cc6a);
}

.progress-fill.in-progress {
    background: linear-gradient(90deg, #f1c40f, #e67e22);
}

.progress-fill.not-started {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.progress-text {
    margin-left: 10px;
    color: #fff;
    font-weight: 600;
}

/* Chart Container */
.trend-chart {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
}

/* Modal Footer */
.modal-footer {
    background: #222;
    padding: 20px 30px;
    border-top: 1px solid #444;
    display: flex;
    pointer-events: auto !important;
    justify-content: flex-end;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #bbb;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #444;
    color: #fff;
    border-color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-radius: 0;
    }
    
    .vulnerability-table {
        font-size: 14px;
    }
    
    .vulnerability-table th,
    .vulnerability-table td {
        padding: 10px 8px;
    }
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
}

/* Vulnerability Metrics Grid */
.vulnerability-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--deloitte-green);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--deloitte-green);
}

.metric-card.critical::before {
    background: #dc3545;
}

.metric-card.high::before {
    background: #fd7e14;
}

.metric-card.medium::before {
    background: #ffc107;
}

.metric-card.low::before {
    background: #28a745;
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.metric-card.critical .metric-icon {
    color: #dc3545;
}

.metric-card.high .metric-icon {
    color: #fd7e14;
}

.metric-card.medium .metric-icon {
    color: #ffc107;
}

.metric-card.low .metric-icon {
    color: #28a745;
}

.metric-content {
    position: relative;
    z-index: 1;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.metric-trend {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.metric-trend i {
    font-size: 0.8rem;
}

/* Fix modal z-index issues */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.modal-content {
    z-index: 1060 !important;
    position: relative;
}

.modal-dialog {
    pointer-events: auto;
    z-index: 1060;
}

/* Ensure all modal elements are clickable */
.modal * {
    pointer-events: auto !important;
}

.modal-header .btn-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1061;
}

/* Fix the vulnerability table being hidden */
.vulnerability-table-container {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.vulnerability-table {
    width: 100%;
    margin-bottom: 0;
    color: #fff;
}

.vulnerability-table th {
    background: #333;
    color: #00ff88;
    border: none;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.vulnerability-table td {
    padding: 12px;
    border-bottom: 1px solid #444;
    border-left: none;
    border-right: none;
}

.vulnerability-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Enhanced metric card styles with trends */
.metric-card .metric-trend {
    font-size: 0.75em;
    margin-top: 4px;
    opacity: 0.8;
}

.metric-card .metric-trend .text-muted {
    color: var(--deloitte-cool-gray-4) !important;
}

.metric-card .metric-trend .text-success {
    color: var(--deloitte-green) !important;
}

.metric-card .metric-trend .text-danger {
    color: var(--deloitte-red) !important;
}

.metric-card .metric-trend .text-warning {
    color: var(--deloitte-orange) !important;
}
/* Agent Cost Integration Styles */

/* Cost Summary Section */
.cost-summary-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.02));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cost-metric-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

.cost-metric-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cost-metric-card .metric-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.session-analysis-display {
    color: #658b65 !important; 
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.agent-name-display {
    color: #85b585 !important; /* Light green */
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.session-id-display {
    color: #b5d5b5 !important; /* Pale green */
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    font-family: 'Courier New', monospace;
    opacity: 0.9;
}

.cost-metric-card .metric-icon.text-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.cost-metric-card .metric-icon.text-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.cost-metric-card .metric-icon.text-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.cost-metric-card .metric-content {
    flex: 1;
}

.cost-metric-card .metric-label {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.cost-metric-card .metric-detail {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Model Breakdown */
.model-breakdown {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.model-breakdown-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.model-breakdown-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.model-name {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.model-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #adb5bd;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.stat-item i {
    font-size: 0.7rem;
    color: #00ff88;
}

/* Trace Items with Costs */
.trace-item-with-costs {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.trace-item-with-costs:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.trace-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trace-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trace-number {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.trace-details {
    flex: 1;
}

.trace-type {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.trace-time {
    font-size: 0.75rem;
    color: #a0aec0;
}

.trace-costs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cost-badge, .token-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cost-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.token-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.trace-content-enhanced {
    padding: 1rem;
}

/* Token Usage Details */
.token-usage-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.usage-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.usage-item:last-child {
    border-bottom: none;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-item.total {
    font-weight: 600;
    background: rgba(0, 255, 136, 0.1);
    margin: 0.25rem -0.75rem -0.75rem;
    padding: 0.75rem;
    border-radius: 0 0 6px 6px;
}

.usage-label {
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
}

.usage-value {
    font-size: 0.8rem;
    color: #e2e8f0;
}

.usage-cost {
    font-size: 0.8rem;
    color: #00ff88;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.usage-cost.total-cost {
    font-size: 0.9rem;
    color: #00ff88;
}

/* Enhanced Activity Timeline */
.activity-header-enhanced {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.activity-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-badge.executions {
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.stat-badge.costs {
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.activity-timeline-enhanced {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.activity-dots-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    height: 40px;
    padding: 0 8px;
}

.activity-dot-enhanced {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: help;
    flex-shrink: 0;
    position: relative;
}

.activity-dot-enhanced.dot-none {
    background: #6c757d;
    width: 6px;
    height: 6px;
    opacity: 0.4;
}

.activity-dot-enhanced.dot-low {
    background: #28a745;
    width: 8px;
    height: 8px;
}

.activity-dot-enhanced.dot-medium {
    background: #ffc107;
    width: 10px;
    height: 10px;
}

.activity-dot-enhanced.dot-high {
    background: #dc3545;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.activity-dot-enhanced.dot-recent {
    animation: pulse-activity 2s infinite;
    border: 2px solid #00ff88;
}

.activity-summary-enhanced {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

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

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.25rem;
}

.summary-detail {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Cost Tooltip */
.cost-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 200px;
    backdrop-filter: blur(10px);
}

.tooltip-header {
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 0.25rem;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tooltip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-item i {
    color: #00ff88;
    width: 14px;
    text-align: center;
}

/* Animations */
@keyframes pulse-activity {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cost-metric-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .trace-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .trace-costs {
        align-self: stretch;
        justify-content: center;
    }
    
    .activity-stats {
        justify-content: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .usage-breakdown .usage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .model-stats {
        justify-content: center;
    }
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {
    .cost-metric-card {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .activity-header-enhanced {
        background: rgba(0, 123, 255, 0.08);
    }
    
    .cost-tooltip {
        background: rgba(0, 0, 0, 0.95);
    }
}


/* Fix Alert Activity table responsiveness to prevent layout breaking on horizontal contraction */
.alert-activity-container .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%; /* Force container to be 100% of parent */
    max-width: 100%; /* Don't exceed parent width */
}

.alert-activity-container .table {
    min-width: 1200px; /* Ensure table maintains minimum width for 15 columns */
    white-space: nowrap;
    width: max-content; /* Table can be wider than container */
}

.alert-activity-container .table th,
.alert-activity-container .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Prevent extremely wide columns */
}

/* Ensure the table container doesn't break the outer layout */
.alert-activity-container .table-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Contain the table overflow within this section */
}

/* Ensure dashboard panel doesn't expand beyond viewport */
.alert-activity-container .dashboard-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent expansion beyond container */
}

/* Force the alert activity container itself to respect browser window width */
.alert-activity-container {
    width: calc(100% - 10px); /* Respect the existing margin calculation */
    max-width: calc(100vw - 270px); /* Don't exceed viewport minus nav panel */
    overflow-x: hidden; /* Prevent horizontal expansion only */
    overflow-y: auto; /* Keep vertical scrolling */
}

/* Responsive table adjustments for very narrow screens - Alert Activity only */
@media (max-width: 768px) {
    .alert-activity-container {
        max-width: calc(100vw - 20px); /* Adjust for smaller nav panel on mobile */
    }
    
    .alert-activity-container .table {
        min-width: 900px; /* Reduce minimum width on smaller screens */
    }
    
    .alert-activity-container .table th,
    .alert-activity-container .table td {
        padding: 0.5rem 0.25rem; /* Reduce padding to save space */
        font-size: 0.875rem;
        max-width: 120px; /* Smaller max width on mobile */
    }
}

@media (max-width: 480px) {
    .alert-activity-container {
        max-width: calc(100vw - 10px); /* Even tighter on very small screens */
    }
    
    .alert-activity-container .table {
        min-width: 800px; /* Further reduce for very small screens */
    }
    
    .alert-activity-container .table th,
    .alert-activity-container .table td {
        padding: 0.25rem;
        font-size: 0.8rem;
        max-width: 100px;
    }
}
/* Chat History Styles */
.chat-history-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
    margin: 0px 5px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    height: calc(100% - 60px);
    width: calc(100% - 10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.chat-history-content {
    max-width: 900px;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
}

.chat-history-header {
    text-align: center;
    margin-bottom: 15px;
}

.chat-history-header h4 {
    color: var(--deloitte-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.chat-history-search {
    margin-bottom: 15px;
}

.chat-history-search input {
    background-color: rgba(var(--white-rgb), 0.1);
    border: 1px solid rgba(var(--white-rgb), 0.2);
    color: var(--deloitte-white);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.chat-history-search input:focus {
    background-color: rgba(var(--white-rgb), 0.15);
    border-color: var(--deloitte-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
    outline: none;
}

.chat-history-search input::placeholder {
    color: rgba(var(--white-rgb), 0.6);
}

.chat-history-info {
    margin-bottom: 15px;
    color: var(--deloitte-cool-gray-3);
    font-size: 0.9rem;
}

.chat-history-info strong {
    color: var(--deloitte-white);
}

.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.chat-history-item:hover {
    background-color: rgba(var(--white-rgb), 0.08);
}

.chat-item-content {
    flex: 1;
    min-width: 0;
}

.chat-title {
    color: var(--deloitte-white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-subtitle {
    color: var(--deloitte-cool-gray-4);
    font-size: 0.85rem;
}

.chat-last-message {
    color: var(--deloitte-cool-gray-4);
    font-size: 0.85rem;
    margin-top: 2px;
}

.chat-item-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 15px;
}

.chat-history-item:hover .chat-item-actions {
    opacity: 1;
}

.delete-chat-btn {
    background: none;
    border: none;
    color: var(--deloitte-cool-gray-4);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-chat-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

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

.no-chats, .error-message {
    text-align: center;
    color: var(--deloitte-cool-gray-4);
    padding: 40px 20px;
    font-style: italic;
}

.loading-chat {
    text-align: center;
    color: var(--deloitte-cool-gray-3);
    padding: 20px;
    font-style: italic;
}

.no-messages {
    text-align: center;
    color: var(--deloitte-cool-gray-4);
    padding: 20px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-history-container {
        margin: 5px;
        padding: 10px;
    }
    
    .chat-history-content {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .chat-history-item {
        padding: 12px 16px;
    }
    
    .chat-item-actions {
        opacity: 1; /* Always show on mobile */
    }
    
    .chat-title {
        font-size: 0.95rem;
    }
    
    .chat-subtitle {
        font-size: 0.8rem;
    }
    
    .chat-last-message {
        font-size: 0.8rem;

    }
}

/* Dashboard System Overview - More Compact Version */
.dashboard-container-system-overview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 5px;
    padding: 15px;
    z-index: 1;
    overflow-y: auto;
    margin: 0; /* Remove negative margins */
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
    border: 2px solid var(--deloitte-dark-green);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-image: url("../images/Group5.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* System Overview Section - More Compact */
.dashboard-section-system-overview {
    margin-bottom: 20px; /* Reduced from 30px */
}

.section-title {
    color: var(--deloitte-light-green);
    font-size: 1.2rem; /* Reduced from 1.5rem */
    font-weight: bold;
    margin-bottom: 15px; /* Reduced from 20px */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Reduced from 200px */
    gap: 10px; /* Reduced from 20px */
    margin-bottom: 10px; /* Reduced from 30px */
}

.stat-card {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid var(--deloitte-dark-green);
    border-radius: 8px;
    padding: 15px; /* Reduced from 20px */
    text-align: center;
    transition: all 0.3s ease;
}

.stat-value {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: bold;
    color: var(--deloitte-light-green);
    margin-bottom: 6px; /* Reduced from 8px */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-label {
    font-size: 0.8rem; /* Reduced from 0.9rem */
    color: var(--deloitte-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Bottom Section Grid - More Compact */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 2fr 2fr;
    grid-template-areas: 
        "environment log-sources"
        "security-hub active-alarms";
    gap: 15px;
    flex: 1;
    min-height: 500px;
}

.dashboard-panel-system-overview {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid var(--deloitte-dark-green);
    border-radius: 12px; /* Increased from 8px */
    padding: 20px; /* Increased from 15px */
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Added shadow for depth */
    min-height: 800px; /* Increased from 150px */
}

.dashboard-panel-system-overview-sh {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid var(--deloitte-dark-green);
    border-radius: 12px; /* Increased from 8px */
    padding: 20px; /* Increased from 15px */
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Added shadow for depth */
    min-height: 600px
}

/* Grid Area Assignments */
.dashboard-panel-system-overview:has(.environment-grid) {
    grid-area: environment;
    max-height: 500px; /* Increased to accommodate security hub */
}

.dashboard-panel-system-overview:has(.log-sources-list) {
    grid-area: log-sources;
    max-height: 240px; /* Reduced to fit both panels */
}

.dashboard-panel-system-overview:has(.alarms-list) {
    grid-area: active-alarms;
    max-height: 240px; /* Reduced to fit both panels */
}

.dashboard-panel-system-overview:has(.findings-table-container) {
    grid-area: security-hub;
    max-height: 500px; /* Increased to accommodate security hub */
}

.panel-title {
    color: var(--deloitte-light-green);
    font-size: 1.1rem; /* Slightly increased from 1rem */
    font-weight: bold;
    margin-bottom: 16px; /* Increased from 12px */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px; /* Added padding */
    border-bottom: 1px solid rgba(0, 255, 136, 0.3); /* Added underline */
}

/* Environment Health - Enhanced Layout */
.environment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Increased from 8px */
}

.environment-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased from 10px */
    padding: 12px; /* Increased from 8px */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px; /* Increased from 4px */
    border: 1px solid var(--deloitte-cool-gray-7);
    transition: all 0.2s ease;
}

.environment-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--deloitte-green);
    transform: translateX(2px);
}

.environment-progress {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--deloitte-dark-green);
    border-radius: 6px;
    height: 24px; /* Increased for better visibility */
    overflow: hidden;
    position: relative;
    flex: 1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.environment-progress-bar {
    height: 100%;
    transition: width 0.8s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
    border-radius: 5px;
}

.environment-progress-bar.score-excellent {
    background: linear-gradient(90deg, #28a745, #20c997) !important;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.environment-progress-bar.score-good {
    background: linear-gradient(90deg, #28a745, #20c997) !important;
    box-shadow: 0 0 8px rgba(23, 162, 184, 0.4);
}

.environment-progress-bar.score-warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14) !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
    color: #000 !important; /* Dark text for yellow background */
}

.environment-progress-bar.score-critical {
    background: linear-gradient(90deg, #dc3545, #c82333) !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

/* Default fallback - remove the duplicate and fix */
.environment-progress-bar:not(.score-excellent):not(.score-good):not(.score-warning):not(.score-critical) {
    background: linear-gradient(90deg, #6c757d, #495057) !important;
}

/* Security Hub Findings - Moved and Enhanced */
.findings-stats {
    margin-bottom: 15px; /* Increased from 10px */
    padding: 15px; /* Increased from 10px */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px; /* Increased from 4px */
    font-size: 0.85rem; /* Increased from 0.8rem */
    color: var(--deloitte-white);
    border: 1px solid var(--deloitte-dark-green);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.findings-table-container {
    min-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--deloitte-dark-green);
    border-radius: 8px; /* Increased from 4px */
    background: rgba(0, 0, 0, 0.2);
}

.findings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: transparent;
    color: rgb(255, 255, 255);
}

.findings-table th {
    background: rgba(0, 0, 0, 0.6);
    color: var(--deloitte-light-green);
    padding: 8px; /* Increased from 6px */
    text-align: left;
    border: 1px solid var(--deloitte-dark-green);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.75rem;
}

.findings-table td {
    padding: 6px 8px; /* Increased padding */
    border: 1px solid var(--deloitte-cool-gray-7);
    color: var(--deloitte-white);
}

.findings-table tr:hover {
    background-color: rgba(0, 255, 136, 0.1);
}

/* Top Log Sources - Enhanced */
.log-sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Increased from 6px */
}

.log-source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-source-name {
    flex: 1;
    font-weight: 500;
}

.log-source-count {
    flex: 0 0 auto;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    margin: 0 12px;
}

.log-source-time {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-family: monospace;
    min-width: 50px;
    text-align: right;
}

.log-source-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--deloitte-green);
    transform: translateX(3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Active Alarms - Enhanced */
.alarms-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Increased from 6px */
}

.alarm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px; /* Increased padding */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--deloitte-cool-gray-7);
    border-radius: 8px; /* Increased from 4px */
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alarm-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--deloitte-red);
    transform: translateX(3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.alarm-name {
    color: var(--deloitte-white);
    font-size: 0.9rem; /* Increased from 0.85rem */
    font-weight: 500;
}

.alarm-badge {
    padding: 6px 12px; /* Increased padding */
    border-radius: 6px; /* Increased from 3px */
    font-size: 0.7rem; /* Increased from 0.65rem */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for better aesthetics */
.findings-table-container::-webkit-scrollbar,
.log-sources-list::-webkit-scrollbar,
.alarms-list::-webkit-scrollbar {
    width: 8px;
}

.findings-table-container::-webkit-scrollbar-track,
.log-sources-list::-webkit-scrollbar-track,
.alarms-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.findings-table-container::-webkit-scrollbar-thumb,
.log-sources-list::-webkit-scrollbar-thumb,
.alarms-list::-webkit-scrollbar-thumb {
    background: var(--deloitte-dark-green);
    border-radius: 4px;
}

.findings-table-container::-webkit-scrollbar-thumb:hover,
.log-sources-list::-webkit-scrollbar-thumb:hover,
.alarms-list::-webkit-scrollbar-thumb:hover {
    background: var(--deloitte-light-green);
}

/* Responsive Design - Updated for new layout */
@media (max-width: 1400px) {
    .dashboard-bottom {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "environment log-sources"
            "environment active-alarms"
            "security-hub security-hub";
    }
}

@media (max-width: 1000px) {
    .dashboard-bottom {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "environment"
            "log-sources"
            "active-alarms"
            "security-hub";
    }
    
    .dashboard-panel-system-overview:has(.environment-grid) {
        max-height: 350px;
    }
    
    .dashboard-panel-system-overview:has(.log-sources-list),
    .dashboard-panel-system-overview:has(.alarms-list) {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .dashboard-bottom {
        gap: 10px;
    }
    
    .dashboard-panel-system-overview {
        padding: 15px;
        border-radius: 8px;
    }
    
    .environment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .environment-label {
        min-width: auto;
    }
    
    .environment-progress {
        width: 100%;
    }
    
    .log-source-item,
    .alarm-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .log-source-item,
    .alarm-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

/* Ensure panels don't grow too large */
.dashboard-panel-system-overview {
    min-height: 300px; /* Minimum height */
    max-height: 400px; /* Maximum height */
}

/* Special case for environment health panel - keep it smaller */
.dashboard-panel-system-overview:has(.environment-grid) {
    max-height: 250px; /* Even smaller for environment health */
}

.severity-critical-system-overview {
    color: var(--deloitte-red) !important;
    font-weight: bold;
}

.severity-high-system-overview {
    color: var(--deloitte-orange) !important;
    font-weight: bold;
}

.severity-medium-system-overview {
    color: var(--deloitte-yellow) !important;
}

.severity-low-system-overview {
    color: var(--deloitte-blue) !important;
}

.severity-informational-system-overview {
    color: var(--deloitte-cool-gray-4) !important;
}

/* Status Classes - Using Deloitte Colors */
.status-failed {
    color: var(--deloitte-red) !important;
    font-weight: bold;
}

.status-passed {
    color: var(--deloitte-green) !important;
    font-weight: bold;
}

.status-not-available {
    color: var(--deloitte-yellow) !important;
}

.status-unknown {
    color: var(--deloitte-cool-gray-4) !important;
}

/* Ensure dashboard container is completely hidden when vulnerability is active */
#dashboard-container[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
}

#dashboard-container[style*="display: none"] * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Vulnerability Management Header Styling - Match other containers */
.vulnerability-management-container .d-flex.justify-content-between.align-items-center.mb-4 {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 2rem !important;
}

.vulnerability-management-container .d-flex.justify-content-between h5 {
    color: var(--deloitte-light-green) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.vulnerability-management-container .d-flex.justify-content-between small {
    color: #9ca3af !important;
    font-size: 0.9rem !important;
}

/* Athena Sandbox Styles */
.dashboard-header-container {
    background: linear-gradient(135deg, #1e3a2e, #2d5a3d);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
}

.dashboard-header-left {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-title {
    display: flex;
    align-items: flex-start;
    font-size: 1.75rem;
    font-weight: 700;
    background: rgb(196, 214, 0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* AthenaSandbox Custom Scrollbars */
.athena-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.3) rgba(255, 255, 255, 0.1);
}

.athena-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.athena-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.athena-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 3px;
}

.athena-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.5);
}

.athena-scrollbar::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.1);
}

/* AthenaSandbox Table Footer */
.athena-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--athena-card-borders);
  font-size: 0.75rem;
  color: var(--athena-text-secondary);
  border-radius: 0 0 8px 8px;
}

.athena-footer-left {
  display: flex;
  gap: 1.5rem;
}

.athena-footer-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.athena-footer-value {
  font-weight: 600;
  color: var(--athena-text-primary);
}

.athena-footer-value.green {
  color: #00ff88;
}

.athena-footer-value.blue {
  color: #3b82f6;
}

.athena-footer-value.yellow {
  color: var(--deloitte-yellow);
}

/* AthenaSandbox Utility Classes */
.athena-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.athena-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.athena-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athena-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Final AthenaSandbox responsive adjustments */
@media (max-width: 1200px) {
  .athena-main-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .athena-column-right {
    min-height: auto;
  }
  
  .athena-chat-container {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .athena-main-container {
    padding: 1rem;
  }
  
  .athena-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .athena-header-right {
    margin-left: 0;
    width: 100%;
  }

  .athena-mode-toggle {
    width: 100%;
  }
  
  .athena-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .athena-tabs-left,
  .athena-tabs-right {
    width: 100%;
    justify-content: center;
  }
  
  .athena-builder-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .athena-builder-label {
    min-width: auto;
    font-size: 16px;
  }
  
  .athena-quick-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .athena-quick-action {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
  }
  
  .athena-chat-input-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .athena-chat-send-btn {
    width: 100%;
    min-height: 48px;
  }
  
  .athena-monthly-summary {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .athena-results-table-container {
    overflow-x: auto;
  }
  
  .athena-results-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .athena-title {
    font-size: 1.75rem;
  }
  
  .athena-subtitle {
    font-size: 0.875rem;
  }
  
  .athena-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .athena-metric-card {
    padding: 0.5rem;
  }
  
  .athena-metric-value {
    font-size: 1rem;
  }
  
  .athena-metric-label {
    font-size: 0.7rem;
  }
  
  .athena-column-center {
    padding: 1rem;
  }
  
  .athena-chat-container {
    padding: 1rem;
    min-height: 350px;
  }
  
  .athena-chat-messages-area {
    min-height: 200px;
    padding: 12px;
  }
  
  .athena-message-bubble {
    max-width: 90%;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .athena-chat-textarea {
    min-height: 40px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --athena-card-borders: rgba(255, 255, 255, 0.5);
    --athena-text-secondary: #ffffff;
    --athena-button-secondary: rgba(255, 255, 255, 0.3);
  }
  
  .athena-card,
  .athena-card-compact,
  .athena-card-widget {
    border-width: 2px;
  }
  
  .athena-table-item,
  .athena-template-item,
  .athena-suggestion-item {
    border-width: 2px;
  }
  
  .athena-message-bubble {
    border-width: 2px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .athena-loading-spinner,
  .athena-status-indicator,
  .athena-typing-dot,
  .athena-skeleton-item {
    animation: none;
  }
  
  .athena-btn:hover,
  .athena-table-item:hover,
  .athena-template-item:hover,
  .athena-quick-action:hover,
  .athena-chat-send-btn:hover {
    transform: none;
  }
  
  .athena-card,
  .athena-table-item,
  .athena-template-item,
  .athena-btn,
  .athena-quick-action {
    transition: none;
  }
}

/* Print styles */
@media print {
  .athena-main-container {
    background: white;
    color: black;
    padding: 1rem;
  }
  
  .athena-card,
  .athena-card-compact,
  .athena-card-widget {
    background: white;
    border: 1px solid black;
    break-inside: avoid;
  }
  
  .athena-chat-container,
  .athena-quick-actions,
  .athena-mode-toggle,
  .athena-tabs-right {
    display: none;
  }
  
  .athena-main-grid {
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }
  
  .athena-results-table {
    font-size: 10px;
  }
  
  .athena-sql-code {
    background: #f5f5f5;
    color: black;
    border: 1px solid #ccc;
  }
}

/* Focus management for accessibility */
.athena-btn:focus,
.athena-tab-btn:focus,
.athena-mode-btn:focus,
.athena-table-item:focus,
.athena-template-item:focus,
.athena-quick-action:focus {
  outline: 2px solid var(--athena-button-primary);
  outline-offset: 2px;
}

.athena-builder-input:focus,
.athena-builder-select:focus,
.athena-sql-textarea:focus,
.athena-chat-textarea:focus {
  outline: 2px solid var(--athena-button-primary);
  outline-offset: 1px;
}

/* Skip link for accessibility */
.athena-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--athena-button-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.athena-skip-link:focus {
  top: 6px;
}

/* Screen reader only content */
.athena-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom properties for dynamic theming */
.athena-theme-dark {
  --athena-bg-primary: rgb(17, 24, 39);
  --athena-card-bg: rgba(0, 0, 0, 0.3);
  --athena-text-primary: #e2e8f0;
  --athena-text-secondary: #9ca3af;
}

.athena-theme-light {
  --athena-bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  --athena-card-bg: rgba(255, 255, 255, 0.8);
  --athena-text-primary: #1e293b;
  --athena-text-secondary: #64748b;
  --athena-card-borders: rgba(0, 0, 0, 0.1);
  --athena-input-bg: rgba(255, 255, 255, 0.95);
  --athena-chat-bg: rgba(248, 250, 252, 0.8);
  --athena-message-agent: rgba(255, 255, 255, 0.95);
}

/* AthenaSandbox loading states */
.athena-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

.athena-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--athena-text-primary);
}

.athena-loading-spinner-large {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--athena-button-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.athena-loading-text {
  font-size: 14px;
  font-weight: 500;
}

/* AthenaSandbox empty states */
.athena-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--athena-text-secondary);
}

.athena-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.athena-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--athena-text-primary);
}

.athena-empty-description {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 400px;
}

/* AthenaSandbox notification styles */
.athena-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 8px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.athena-notification.success {
  border-left: 4px solid var(--athena-button-success);
}

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

.athena-notification.warning {
  border-left: 4px solid var(--deloitte-yellow);
}

.athena-notification.info {
  border-left: 4px solid var(--athena-button-primary);
}

.athena-notification-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.athena-notification-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.athena-notification-text {
  flex: 1;
}

.athena-notification-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--athena-text-primary);
}

.athena-notification-message {
  font-size: 0.875rem;
  color: var(--athena-text-secondary);
  line-height: 1.4;
}

.athena-notification-close {
  background: none;
  border: none;
  color: var(--athena-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  margin: -0.25rem -0.25rem -0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.athena-notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--athena-text-primary);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* AthenaSandbox data visualization enhancements */
.athena-chart-wrapper {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.athena-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.athena-chart-title {
  color: var(--athena-text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.athena-chart-controls {
  display: flex;
  gap: 0.5rem;
}

.athena-chart-control-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: var(--athena-button-secondary);
  color: var(--athena-text-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.athena-chart-control-btn:hover {
  background: var(--athena-button-primary);
  color: #ffffff;
}

.athena-chart-control-btn.active {
  background: var(--athena-button-primary);
  color: #ffffff;
}

.athena-use-query-btn {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: rgba(16, 185, 129, 0.8);
}

.athena-use-query-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: rgba(16, 185, 129, 1);
    border-color: rgba(16, 185, 129, 0.5);
}

/* AthenaSandbox code syntax highlighting */
.athena-code-block {
  background: #0d1117;
  color: #f0f6fc;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid var(--athena-card-borders);
}

.athena-code-btn:hover {
    background: #4a5568;
    border-color: #718096;
}

.athena-code-btn-primary {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

.athena-code-content pre {
    background: transparent;
    color: #f0f6fc;
    font-size: 13px;
    white-space: pre-wrap;
    margin: 0;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.athena-code-content code {
    background: transparent;
    padding: 0;
    border: none;
    font-family: inherit;
}

.athena-code-btn-primary:hover {
    background: #2c5282;
    border-color: #2c5282;
}

.athena-code-content {
    background: #0d1117;
    padding: 16px;
    border-radius: 0 0 8px 8px;
    overflow: auto;
}

.athena-code-btn::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.6rem; /* Smaller icon */
}

.athena-code-btn[onclick*="copyToClipboard"]::before {
    content: '\f0c5'; /* Copy icon */
}

.athena-code-btn[onclick*="useQuery"]::before {
    content: '\f04b'; /* Play icon */
}

.athena-code-btn {
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
    border: 1px solid;
}

.export-csv-btn {
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
    border: 1px solid;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: rgba(16, 185, 129, 0.8);
}

.export-csv-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: rgba(16, 185, 129, 1);
    border-color: rgba(16, 185, 129, 0.5);
}

.athena-code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.athena-code-language {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
}

.athena-code-actions {
    display: flex;
    gap: 8px;
}

.athena-code-keyword {
  color: #ff79c6;
  font-weight: 600;
}

.athena-code-string {
  color: #f1fa8c;
}

.athena-code-number {
  color: #bd93f9;
}

.athena-code-comment {
  color: #6272a4;
  font-style: italic;
}

.athena-code-function {
  color: #50fa7b;
}

.athena-code-operator {
  color: #ff79c6;
}

.athena-copy-btn {
    background: rgba(74, 85, 104, 0.3);
    border-color: rgba(74, 85, 104, 0.5);
    color: #9ca3af;
}

.athena-copy-btn:hover {
    background: rgba(74, 85, 104, 0.5);
    color: #e2e8f0;
    border-color: rgba(74, 85, 104, 0.7);
}

.athena-code-keyword {
  color: #ff79c6;
  font-weight: 600;
}

.athena-code-string {
  color: #f1fa8c;
}

.athena-code-number {
  color: #bd93f9;
}

.athena-code-comment {
  color: #6272a4;
  font-style: italic;
}

.athena-code-function {
  color: #50fa7b;
}

.athena-code-operator {
  color: #ff79c6;
}

/* AthenaSandbox advanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.athena-animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

.athena-animate-fade-in-left {
  animation: fadeInLeft 0.5s ease-out;
}

.athena-animate-fade-in-right {
  animation: fadeInRight 0.5s ease-out;
}

.athena-animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

/* AthenaSandbox performance optimizations */
.athena-will-change-transform {
  will-change: transform;
}

.athena-will-change-opacity {
  will-change: opacity;
}

.athena-gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* AthenaSandbox utility classes for spacing */
.athena-m-0 { margin: 0; }
.athena-m-1 { margin: 0.25rem; }
.athena-m-2 { margin: 0.5rem; }
.athena-m-3 { margin: 0.75rem; }
.athena-m-4 { margin: 1rem; }
.athena-m-5 { margin: 1.25rem; }
.athena-m-6 { margin: 1.5rem; }

.athena-p-0 { padding: 0; }
.athena-p-1 { padding: 0.25rem; }
.athena-p-2 { padding: 0.5rem; }
.athena-p-3 { padding: 0.75rem; }
.athena-p-4 { padding: 1rem; }
.athena-p-5 { padding: 1.25rem; }
.athena-p-6 { padding: 1.5rem; }

.athena-mb-0 { margin-bottom: 0; }
.athena-mb-1 { margin-bottom: 0.25rem; }
.athena-mb-2 { margin-bottom: 0.5rem; }
.athena-mb-3 { margin-bottom: 0.75rem; }
.athena-mb-4 { margin-bottom: 1rem; }
.athena-mb-5 { margin-bottom: 1.25rem; }
.athena-mb-6 { margin-bottom: 1.5rem; }

.athena-mt-0 { margin-top: 0; }
.athena-mt-1 { margin-top: 0.25rem; }
.athena-mt-2 { margin-top: 0.5rem; }
.athena-mt-3 { margin-top: 0.75rem; }
.athena-mt-4 { margin-top: 1rem; }
.athena-mt-5 { margin-top: 1.25rem; }
.athena-mt-6 { margin-top: 1.5rem; }

/* Final overrides and cleanup */
.athena-override-important {
  /* Use sparingly - for critical overrides only */
}

/* Ensure all AthenaSandbox components have proper isolation */
.athena-main-container * {
  box-sizing: border-box;
}

/* AthenaSandbox Buttons */
.athena-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.athena-btn-primary {
  background: var(--athena-button-primary);
  color: #ffffff;
}

.athena-btn-success {
  background: var(--athena-button-success);
  color: #ffffff;
}

.athena-btn-secondary {
  background: var(--athena-button-secondary);
  color: var(--athena-text-primary);
}

.athena-btn:disabled {
  background: #6b7280;
  color: #ffffff;
  cursor: not-allowed;
}

.athena-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* AthenaSandbox Mode Toggle */
.athena-mode-toggle {
  background: var(--athena-chat-bg);
  border-radius: 16px;
  padding: 6px;
  display: flex;
}

.athena-mode-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.athena-mode-btn.active {
  background: var(--athena-button-primary);
  color: #ffffff;
}

.athena-mode-btn:not(.active) {
  background: transparent;
  color: var(--athena-text-primary);
}

/* AthenaSandbox Tables Browser */
.athena-tables-widget {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
}

.athena-widget-title {
  color: var(--athena-text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.athena-tables-list {
  max-height: 200px;
  overflow-y: auto;
}

.athena-table-item {
  padding: 12px;
  background: var(--athena-button-secondary);
  color: var(--athena-text-primary);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  fontSize: 14px;
  font-weight: 400;
}

.athena-table-item.selected {
  background: rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.athena-table-item:hover {
  background: rgba(74, 85, 104, 0.5);
  transform: translateY(-2px);
}

/* AthenaSandbox Templates */
.athena-templates-widget {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1;
  min-height: 400px;
}

.athena-templates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.athena-template-item {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(74, 85, 104, 0.5);
  padding: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.athena-template-item:hover {
  border-color: var(--athena-button-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.2);
}

.athena-template-title {
  color: var(--athena-text-primary);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.athena-template-desc {
  color: var(--athena-text-secondary);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

/* AthenaSandbox Schema Info */
.athena-schema-widget {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.athena-schema-title {
  color: var(--athena-text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.athena-schema-content {
  font-size: 12px;
  color: var(--athena-text-secondary);
  line-height: 1.6;
}

.athena-schema-name {
  color: var(--athena-text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.athena-schema-columns {
  margin-top: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  font-size: 11px;
}

/* AthenaSandbox Query Tabs */
.athena-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.athena-tabs-left {
  display: flex;
  gap: 8px;
}

.athena-tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.athena-tab-btn.active {
  background: rgba(0, 255, 136, 0.1);
  color: #ffffff;
}

.athena-tab-btn:not(.active) {
  background: var(--athena-button-secondary);
  color: var(--athena-text-primary);
}

.athena-tabs-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.athena-combo-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.athena-combo-input {
    flex: 1;
    padding: 8px 32px 8px 12px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--deloitte-cool-gray-8);
    border-radius: 6px;
    color: var(--deloitte-cool-gray-1);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.2s ease;
}

.athena-combo-input:focus {
    outline: none;
    border-color: var(--deloitte-dark-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.1);
}

.athena-combo-input::placeholder {
    color: var(--deloitte-cool-gray-5);
    font-style: italic;
}

.athena-combo-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--deloitte-cool-gray-4);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.athena-combo-toggle:hover {
    color: var(--deloitte-dark-green);
}

.athena-combo-toggle.open {
    transform: rotate(180deg);
}

/* AthenaSandbox Query Builder */
.athena-query-content {
  flex: 1;
  min-height: 300px;
  margin-bottom: 1rem;
}

.athena-builder-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.athena-builder-label {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--deloitte-cool-gray-2);
    padding-top: 8px;
}

.athena-builder-form {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--deloitte-cool-gray-8);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.athena-builder-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--athena-card-borders);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--athena-text-primary);
}

.athena-builder-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--athena-card-borders);
  border-radius: 8px;
  font-size: 14px;
  background: var(--athena-input-bg);
  color: var(--athena-text-primary);
}

.athena-combo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--deloitte-dark-green);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px; /* Increased height */
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
}

.athena-combo-dropdown.show {
    display: block;
}

.athena-combo-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--deloitte-cool-gray-2);
    transition: background-color 0.2s ease;
}

.athena-combo-option:hover {
    background-color: rgba(0, 255, 127, 0.1);
    color: var(--deloitte-dark-green);
}

.athena-combo-option.selected {
    background-color: var(--deloitte-dark-green);
    color: white;
}

/* AthenaSandbox SQL Preview */
.athena-sql-preview {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--deloitte-cool-gray-8);
}

.athena-sql-preview-title {
    color: var(--deloitte-cool-gray-2);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.athena-sql-code {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--deloitte-cool-gray-8);
    border-radius: 6px;
    padding: 12px;
    color: var(--deloitte-cool-gray-1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 0;
}

/* AthenaSandbox SQL Editor */
.athena-sql-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.athena-sql-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 12px;
  background: var(--athena-chat-bg);
  border-radius: 8px;
}

.athena-toolbar-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(74, 85, 104, 0.5);
  color: var(--athena-text-primary);
}

.athena-sql-textarea {
  flex: 1;
  background: #0d1117;
  color: #f0f6fc;
  padding: 1rem;
  border-radius: 8px;
  font-family: Monaco, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  border: 1px solid var(--athena-card-borders);
  outline: none;
  min-height: 200px;
}

/* AthenaSandbox Query Status */
.athena-query-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--athena-card-borders);
  font-size: 14px;
  color: var(--athena-text-secondary);
}

.athena-loading-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.athena-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #374151;
  border-top: 2px solid var(--athena-button-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.athena-cost-display {
  font-weight: 600;
}

/* AthenaSandbox Results */
.athena-results-section {
  margin-top: 1.5rem;
  padding: 0;
  border: none;
}

.athena-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(45, 55, 72, 0.6);
  border-bottom: 1px solid var(--athena-card-borders);
  border-radius: 8px 8px 0 0;
}

.athena-results-title {
  color: var(--athena-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.athena-results-count {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.athena-results-table-container {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 0 0 8px 8px;
  overflow: auto;
  max-height: 500px;
  
  /* Improved scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.3) rgba(255, 255, 255, 0.1);
}

.athena-results-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.athena-results-table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.athena-results-table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 4px;
}

.athena-results-table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.5);
}

.athena-results-table-container::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.1);
}

.athena-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  background: transparent;
}

.athena-results-table thead {
  background: rgba(30, 41, 59, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.athena-results-table th {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--athena-text-primary);
  text-align: left;
  border-right: 1px solid rgba(74, 85, 104, 0.3);
  border-bottom: 2px solid var(--athena-card-borders);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(45, 55, 72, 0.9));
  position: relative;
  white-space: nowrap;
  min-width: 120px;
}

.athena-results-table td:last-child {
  border-right: none;
}

.athena-results-table tbody tr {
  transition: background-color 0.15s ease;
}

.athena-results-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.3);
}

.athena-results-table tbody tr.row-even {
  background: rgba(15, 23, 42, 0.4);
}

.athena-results-table tbody tr.row-odd {
  background: rgba(15, 23, 42, 0.2);
}

.athena-results-table tbody tr:hover {
  background: rgba(0, 255, 136, 0.1) !important;
  cursor: default;
}

/* Column type indicators */
.athena-results-table th[data-type="string"]::before {
  content: "📝 ";
  opacity: 0.6;
}

.athena-results-table th[data-type="bigint"]::before,
.athena-results-table th[data-type="int"]::before {
  content: "🔢 ";
  opacity: 0.6;
}

.athena-results-table th[data-type="timestamp"]::before {
  content: "📅 ";
  opacity: 0.6;
}

.athena-results-table td[title*="{"],
.athena-results-table td[title*="arn:"],
.athena-results-table td[title*="http"] {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  font-size: 0.7rem;
  line-height: 1.3;
  max-width: 300px;
}

/* Special styling for very wide content */
.athena-results-table td:has-text("{") {
  background: rgba(30, 41, 59, 0.3);
  border-left: 2px solid rgba(59, 130, 246, 0.4);
}

.athena-column-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  cursor: col-resize;
  border-right: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.athena-column-resize-handle:hover {
  border-right-color: var(--deloitte-green);
}

.athena-results-table td {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--athena-text-primary);
  border-right: 1px solid rgba(74, 85, 104, 0.2);
  border-bottom: 1px solid rgba(74, 85, 104, 0.15);
  vertical-align: top;
  line-height: 1.4;
  background: rgba(17, 24, 39, 0.3);
  
  /* Text wrapping settings */
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: 250px;
  min-width: 120px;
  
  /* Handle very long strings gracefully */
  overflow-wrap: break-word;
  hyphens: auto;
}

/* AthenaSandbox Monthly Summary */
.athena-monthly-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--athena-card-borders);
}

.athena-monthly-item {
  text-align: center;
  flex: 1;
}

.athena-skeleton-item {
  background: var(--athena-skeleton-bg);
  background-size: 200% 100%;
  border-radius: 4px;
  margin: 0 auto;
}

.athena-skeleton-small {
  width: 40px;
  height: 1rem;
  margin-bottom: 4px;
}

.athena-skeleton-medium {
  width: 60px;
  height: 1.25rem;
  margin-bottom: 4px;
}

.athena-skeleton-large {
  width: 50px;
  height: 0.75rem;
}

/* AthenaSandbox Chat Interface */
.athena-chat-widget {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1rem;
}

.athena-chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.athena-status-indicator {
  width: 8px;
  height: 8px;
  background: var(--athena-button-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.athena-chat-title {
  color: var(--athena-text-primary);
  font-size: 1.125rem;
  margin: 0;
}

.athena-connection-info {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--athena-text-secondary);
}

.athena-connection-title {
  font-weight: 600;
  margin-bottom: 2px;
}

/* AthenaSandbox Chat Messages */
.athena-chat-container {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.athena-chat-messages-area {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 16px;
  background: var(--athena-chat-bg);
  border-radius: 12px;
  min-height: 300px;
}

.athena-message {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.athena-message.user {
  align-items: flex-end;
}

.athena-message.agent {
  align-items: flex-start;
}

.athena-message-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.athena-message.user .athena-message-bubble {
  background: var(--athena-message-user);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.athena-message.agent .athena-message-bubble {
  background: var(--athena-message-agent);
  color: var(--athena-text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--athena-card-borders);
}

.athena-message-code {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(74, 85, 104, 0.3);
    max-width: 100%;
    word-wrap: break-word;
}

.athena-message-timestamp {
  font-size: 11px;
  color: var(--athena-text-secondary);
  margin-top: 4px;
}

/* AthenaSandbox Typing Indicator */
.athena-typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--athena-text-secondary);
  font-size: 14px;
  font-style: italic;
  padding: 12px 16px;
}

.athena-typing-dots {
  display: flex;
  gap: 3px;
}

.athena-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--athena-text-secondary);
  animation: bounce 1.4s infinite ease-in-out;
}

.athena-typing-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.athena-typing-dot:nth-child(3) {
  animation-delay: 0.32s;
}

/* AthenaSandbox Quick Actions */
.athena-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.athena-quick-action {
  padding: 6px 12px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(74, 85, 104, 0.5);
  color: var(--athena-text-primary);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.athena-quick-action:disabled {
  background: #6b7280;
  opacity: 0.5;
  cursor: not-allowed;
}

.athena-quick-action:hover:not(:disabled) {
  background: rgba(74, 85, 104, 0.7);
  transform: translateY(-1px);
}

/* AthenaSandbox Chat Input */
.athena-chat-input-container {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.athena-chat-textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  resize: none;
  min-height: 44px;
  max-height: 100px;
  font-size: 14px;
  background: var(--athena-input-bg);
  color: var(--athena-text-primary);
  outline: none;
  font-family: inherit;
  line-height: 1.4;
}

.athena-chat-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.athena-chat-send-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  min-width: 48px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.athena-chat-send-btn:disabled {
  background: #6b7280;
  color: #ffffff;
  cursor: not-allowed;
}

.athena-chat-send-btn:not(:disabled) {
  background: var(--athena-button-primary);
  color: #ffffff;
}

.athena-chat-send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* AthenaSandbox Suggestions */
.athena-suggestions-widget {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
}

.athena-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.athena-suggestion-item {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}

.athena-suggestion-title {
  color: var(--athena-text-primary);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.athena-suggestion-content {
  color: var(--athena-text-secondary);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.athena-suggestion-code {
  background: #0d1117;
  color: #f0f6fc;
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 8px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--athena-card-borders);
  font-family: Monaco, Menlo, monospace;
}

/* AthenaSandbox Header */
.athena-header {
  margin-bottom: 2rem;
}

.athena-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
}

.athena-header-left {
  flex: 1;
}

.athena-header-right {
  margin-left: 2rem;
}

.athena-title {
  color: var(--athena-text-primary);
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

.athena-subtitle {
  color: var(--athena-text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* AthenaSandbox Cards */
.athena-card {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.athena-card-compact {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 8px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.athena-card-widget {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* AthenaSandbox Metrics Grid */
.athena-metrics-grid {
  display: grid;
  grid-template-columns: 200px 400px 300px;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.athena-metric-card {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 6px;
  padding: 0.75rem;
}

.athena-metric-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--athena-text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.athena-metric-icon {
  font-size: 1rem;
}

.athena-metric-label {
  color: var(--athena-text-secondary);
  font-size: 0.75rem;
}

/* AthenaSandbox Main Grid */
.athena-main-grid {
  display: grid;
  grid-template-columns: 500px 800px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

/* AthenaSandbox Columns */
.athena-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.athena-column-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: fit-content;
}

.athena-column-center {
  background: var(--athena-card-bg);
  border: 1px solid var(--athena-card-borders);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.athena-column-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 600px;
}

.athena-templates-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--deloitte-cool-gray-8);
}

.athena-templates-search {
    margin-bottom: 8px;
}

.athena-search-input {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--deloitte-cool-gray-8);
    border-radius: 6px;
    color: var(--deloitte-cool-gray-1);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.athena-search-input:focus {
    outline: none;
    border-color: var(--deloitte-dark-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.1);
}

.athena-search-input::placeholder {
    color: var(--deloitte-cool-gray-5);
}

.athena-templates-count {
    font-size: 0.75rem;
    color: var(--deloitte-cool-gray-4);
    text-align: right;
}

.athena-templates-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--deloitte-dark-green) var(--deloitte-cool-gray-8);
}

.athena-templates-scrollable::-webkit-scrollbar {
    width: 6px;
}

.athena-templates-scrollable::-webkit-scrollbar-track {
    background: var(--deloitte-cool-gray-8);
    border-radius: 3px;
}

.athena-templates-scrollable::-webkit-scrollbar-thumb {
    background: var(--deloitte-dark-green);
    border-radius: 3px;
}

.athena-templates-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--deloitte-green);
}

.athena-template-item {
    background-color: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid var(--deloitte-cool-gray-8);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.athena-template-item:hover {
    border-color: var(--deloitte-dark-green);
    background-color: rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

.athena-template-title {
    color: var(--deloitte-cool-gray-1);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.athena-template-desc {
    color: var(--deloitte-cool-gray-4);
    font-size: 0.75rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.athena-template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.athena-template-key {
    font-family: monospace;
    font-size: 0.6875rem;
    color: var(--deloitte-cool-gray-5);
    background-color: rgba(74, 85, 104, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.athena-search-highlight {
    background-color: var(--deloitte-accent);
    color: white;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.athena-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--deloitte-cool-gray-4);
}

.athena-empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.athena-empty-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--deloitte-cool-gray-3);
}

.athena-empty-description {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ===== UNIQUE VULNERABILITY DASHBOARD PANELS - NO CONFLICTS ===== */

/* UNIQUE INTELLIGENCE INSIGHTS PANEL */
.vuln-insights-panel-unique {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
}

.vuln-insights-panel-unique .insights-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    flex: 1 !important;
}

.vuln-insights-panel-unique .insight-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.vuln-insights-panel-unique .insight-item:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.vuln-insights-panel-unique .insight-icon {
    width: 36px !important;
    height: 36px !important;
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #00ff88 !important;
    font-size: 1.1rem !important;
}

.vuln-insights-panel-unique .insight-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.vuln-insights-panel-unique .insight-title {
    color: #e5e7eb !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.vuln-insights-panel-unique .insight-value {
    color: #00ff88 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.vuln-insights-panel-unique .insight-trend {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
}

.vuln-insights-panel-unique .insight-trend.up {
    color: #00ff88 !important;
}

.vuln-insights-panel-unique .insight-trend.warning {
    color: #f59e0b !important;
}

.vuln-insights-panel-unique .insight-trend.stable {
    color: #3b82f6 !important;
}

/* UNIQUE AI GENERATED EMAILS PANEL */
.vuln-emails-panel-unique {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
}

.vuln-emails-panel-unique .email-templates {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    flex: 1 !important;
}

.vuln-emails-panel-unique .email-template {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.vuln-emails-panel-unique .email-template:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 123, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.vuln-emails-panel-unique .template-icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 123, 255, 0.1) !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3b82f6 !important;
    font-size: 1.2rem !important;
}

.vuln-emails-panel-unique .email-template .template-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.vuln-emails-panel-unique .email-template .template-title {
    color: #e5e7eb !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.vuln-emails-panel-unique .email-template .template-desc {
    color: #9ca3af !important;
    font-size: 0.8rem !important;
}

.vuln-emails-panel-unique .email-template .template-action {
    width: 32px !important;
    height: 32px !important;
    background: rgba(0, 123, 255, 0.1) !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3b82f6 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.vuln-emails-panel-unique .email-template:hover .template-action {
    background: rgba(0, 123, 255, 0.3) !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* UNIQUE SECTION HEADERS */
.vuln-insights-panel-unique .section-header,
.vuln-emails-panel-unique .section-header {
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.vuln-insights-panel-unique .section-header h6,
.vuln-emails-panel-unique .section-header h6 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* RESPONSIVE DESIGN FOR UNIQUE PANELS */
@media (max-width: 768px) {
    .vuln-insights-panel-unique,
    .vuln-emails-panel-unique {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .vuln-insights-panel-unique .insight-item,
    .vuln-emails-panel-unique .email-template {
        padding: 0.75rem !important;
    }
    
    .vuln-insights-panel-unique .insight-icon,
    .vuln-emails-panel-unique .template-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
}

/* ===== ENHANCED DARK MODE EXPORT STYLES ===== */

/* Export Controls Container */
.export-controls {
    background: transparent !important;
    background-color: rgba(0, 0, 0, 0) !important;
    border: 1px solid rgba(64, 64, 64, 0.25) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Export Button Styling */
.export-controls .btn {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.85rem !important;
}

.export-controls .btn:hover {
    background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
    border-color: #00ff88 !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3) !important;
}

.export-controls .btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.2) !important;
}

/* Export Button Variants */
.export-controls .btn-outline-success {
    background: transparent !important;
    border-color: #00ff88 !important;
    color: #00ff88 !important;
}

.export-controls .btn-outline-success:hover {
    background: #00ff88 !important;
    color: #000 !important;
}

.export-controls .btn-outline-info {
    background: transparent !important;
    border-color: #00bfff !important;
    color: #00bfff !important;
}

.export-controls .btn-outline-info:hover {
    background: #00bfff !important;
    color: #000 !important;
}

/* Filter Controls Enhancement */
.filter-controls {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9)) !important;
    border: 1px solid rgba(64, 64, 64, 0.4) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced Filter Select Styling */
.filter-select {
    background: linear-gradient(135deg, #2d2d2d, #363636) !important;
    border: 1px solid rgba(64, 64, 64, 0.6) !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.filter-select:focus {
    background: linear-gradient(135deg, #363636, #404040) !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
    outline: none !important;
}

.filter-select option {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    padding: 0.5rem !important;
}

.filter-select option:hover {
    background: #00ff88 !important;
    color: #000 !important;
}

/* Filter Wrapper Enhancement */
.filter-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.filter-wrapper::after {
    content: '' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid #00ff88 !important;
    pointer-events: none !important;
}

/* Export Success Animation */
@keyframes exportSuccess {
    0% {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    50% {
        transform: scale(1.05) !important;
        opacity: 0.8 !important;
    }
    100% {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

.export-success {
    animation: exportSuccess 0.6s ease-in-out !important;
}

/* Loading Spinner Enhancement */
.loading-spinner {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: #00ff88 !important;
    animation: spin 1s ease-in-out infinite !important;
}

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

/* Export Options Enhancement */
.vuln-export-option {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9)) !important;
    border: 1px solid rgba(64, 64, 64, 0.4) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.vuln-export-option:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 106, 0.1)) !important;
    border-color: rgba(0, 255, 136, 0.5) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2) !important;
}

.vuln-export-option i {
    color: #00ff88 !important;
    font-size: 1.2rem !important;
    width: 24px !important;
    text-align: center !important;
}

.vuln-export-option span {
    color: #e0e0e0 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

/* Responsive Export Controls */
@media (max-width: 768px) {
    .export-controls {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .export-controls .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
    
    .filter-controls {
        padding: 0.75rem !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .filter-wrapper {
        width: 100% !important;
    }
    
    .filter-select {
        width: 100% !important;
        padding: 0.6rem 0.75rem !important;
    }
}

/* Dark Mode Scrollbar for Export */
.export-controls::-webkit-scrollbar,
.filter-controls::-webkit-scrollbar {
    width: 8px !important;
}

.export-controls::-webkit-scrollbar-track,
.filter-controls::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border-radius: 4px !important;
}

.export-controls::-webkit-scrollbar-thumb,
.filter-controls::-webkit-scrollbar-thumb {
    background: #00ff88 !important;
    border-radius: 4px !important;
}

.export-controls::-webkit-scrollbar-thumb:hover,
.filter-controls::-webkit-scrollbar-thumb:hover {
    background: #00cc6a !important;
}
