.dashboard-body {
    background: var(--gray-50);
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.sidebar-logo i {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle {
    display: none;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transition: var(--transition-normal);
}

.nav-item:hover,
.nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active::before {
    height: 30px;
}

.nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--white);
}

.user-info {
    flex: 1;
}

.user-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.user-menu-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gray-400);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    font-weight: 500;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.btn-logout:hover {
    background: var(--error);
    color: var(--white);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-normal);
}

.dashboard-header {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background: var(--gray-200);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: var(--gray-100);
    border-radius: var(--border-radius-full);
    width: 350px;
}

.search-bar i {
    color: var(--gray-500);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-normal);
}

.header-icon-btn:hover {
    background: var(--gray-200);
}

.header-icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
}

.theme-toggle {
    display: flex;
    gap: 5px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
}

.theme-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-normal);
}

.theme-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.content-area {
    flex: 1;
    padding: 30px;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    width: 300px;
}

.search-bar-inline i {
    color: var(--gray-500);
}

.search-bar-inline input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.filter-select {
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    color: var(--gray-700);
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-xl);
    font-size: 1.75rem;
    color: var(--white);
    flex-shrink: 0;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.stat-change.neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

.chart-select {
    padding: 8px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
}

.card-body {
    padding: 25px;
}

.scan-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scan-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.scan-item:hover {
    background: var(--gray-100);
}

.scan-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.scan-icon.success {
    background: var(--success);
}

.scan-icon.running {
    background: var(--primary);
}

.scan-icon.error {
    background: var(--error);
}

.scan-details {
    flex: 1;
}

.scan-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.scan-details p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.scan-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}

.scan-action {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-normal);
}

.scan-action:hover {
    background: var(--primary);
    color: var(--white);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-usage-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-usage-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.tool-usage-info i {
    font-size: 1.25rem;
    color: var(--primary);
}

.tool-usage-info span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.tool-usage-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.tool-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 1s ease;
}

.tool-usage-percent {
    min-width: 45px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

.activity-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.activity-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.activity-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.activity-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 5px;
}

.activity-content span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.scan-form-container {
    max-width: 900px;
}

.scan-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    border: 1px solid var(--gray-200);
}

.form-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    color: var(--gray-700);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.tools-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tool-checkbox {
    cursor: pointer;
}

.tool-checkbox input {
    display: none;
}

.tool-checkbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.tool-checkbox input:checked + .tool-checkbox-content {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.tool-checkbox-content i {
    font-size: 1.75rem;
    color: var(--primary);
}

.tool-checkbox-content span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.table-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px 20px;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-top: 1px solid var(--gray-200);
}

.table-cell-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-cell-main i {
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius-md);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.running {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ===== SCAN EXECUTION STYLES ===== */

.execution-container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.execution-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* Progress Section */
.progress-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.progress-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.progress-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.progress-bar-container {
    margin-top: 20px;
}

.progress-bar-track {
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tools Status */
.tools-status {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.tools-status h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 20px 0;
}

.tools-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tool-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--gray-300);
    transition: all var(--transition-normal);
}

.tool-status-item.pending {
    border-left-color: var(--gray-400);
}

.tool-status-item.running {
    border-left-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.tool-status-item.completed {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.tool-status-item.error {
    border-left-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.tool-status-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius-md);
}

.tool-status-icon i {
    color: var(--gray-600);
}

.tool-status-item.running .tool-status-icon i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

.tool-status-item.completed .tool-status-icon i {
    color: var(--success);
}

.tool-status-item.error .tool-status-icon i {
    color: var(--error);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tool-status-details h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.tool-status-details p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

/* Vulnerabilities Summary */
.vulnerabilities-summary h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 20px 0;
}

.vuln-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.vuln-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--gray-300);
}

.vuln-stat-item.critical {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.vuln-stat-item.high {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.vuln-stat-item.medium {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.vuln-stat-item.low {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.vuln-stat-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius-md);
}

.vuln-stat-item.critical .vuln-stat-icon i { color: #dc2626; }
.vuln-stat-item.high .vuln-stat-icon i { color: #f59e0b; }
.vuln-stat-item.medium .vuln-stat-icon i { color: #3b82f6; }
.vuln-stat-item.low .vuln-stat-icon i { color: #10b981; }

.vuln-stat-details {
    display: flex;
    flex-direction: column;
}

.vuln-stat-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.vuln-stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Terminal Card */
.terminal-card {
    background: #1e1e1e;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 0.875rem;
    font-weight: 500;
}

.terminal-title i {
    color: #10b981;
    font-size: 1rem;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-control-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #3d3d3d;
    border-radius: var(--border-radius-sm);
    color: #9ca3af;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.terminal-control-btn:hover {
    background: #3d3d3d;
    color: var(--white);
    border-color: #4d4d4d;
}

.terminal-body {
    padding: 20px;
    background: #1e1e1e;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #5d5d5d;
}

.terminal-line {
    margin-bottom: 4px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.terminal-line.info { color: #60a5fa; }
.terminal-line.success { color: #10b981; }
.terminal-line.error { color: #ef4444; }
.terminal-line.warning { color: #f59e0b; }
.terminal-line.command { color: #a78bfa; }

/* AI Analysis Card */
.ai-analysis-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
}

.ai-analysis-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-analysis-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    font-size: 1.75rem;
}

.ai-analysis-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.ai-analysis-header p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.ai-analysis-body {
    display: grid;
    gap: 25px;
}

/* Risk Assessment */
.risk-assessment {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 25px;
}

.risk-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.risk-score-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 1.75rem;
    font-weight: 700;
}

.risk-score-details h4 {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-level {
    font-size: 1.25rem;
    font-weight: 700;
}

.risk-summary {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* AI Recommendations */
.ai-recommendations,
.attack-vectors {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 25px;
}

.ai-recommendations h4,
.attack-vectors h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-recommendations h4 i,
.attack-vectors h4 i {
    font-size: 1.125rem;
}

.ai-recommendations ul,
.attack-vectors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-recommendations li,
.attack-vectors li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ai-recommendations li::before,
.attack-vectors li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.ai-recommendations li:not(:last-child),
.attack-vectors li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .execution-card {
        padding: 20px;
    }

    .progress-header {
        flex-direction: column;
        gap: 15px;
    }

    .progress-percentage {
        font-size: 1.5rem;
    }

    .tools-status-grid {
        grid-template-columns: 1fr;
    }

    .vuln-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-body {
        max-height: 300px;
        padding: 15px;
        font-size: 0.75rem;
    }

    .ai-analysis-card {
        padding: 20px;
    }

    .risk-score {
        flex-direction: column;
        text-align: center;
    }
}

.vuln-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-weight: 700;
    border-radius: var(--border-radius-md);
}

/* ===== CLASSES UTILITÁRIAS PARA SUBSTITUIR ESTILOS INLINE ===== */

/* White Cards */
.white-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

.white-card--chart {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

/* Flex Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
}

.flex-gap-15 {
    display: flex;
    gap: 15px;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Spacing */
.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6b7280;
}

.text-dark {
    color: #111827;
}

.text-primary {
    color: #6366f1;
}

/* Settings Page */
.settings-container {
    max-width: 600px;
}

.settings-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.settings-label--flex {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.settings-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.settings-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.settings-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.settings-icon {
    margin-right: 8px;
    color: #6366f1;
}

/* Chart Container */
.chart-container {
    height: 300px;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
}

.empty-state--compact {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

/* Modal Styles */
.modal {
    display: none;
}

.modal.active {
    display: block;
}

.modal-content--notification {
    position: fixed;
    right: 20px;
    top: 70px;
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1001;
}

.modal-content--centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header--large {
    padding: 30px;
}

.modal-title {
    margin: 0;
    font-size: 1.125rem;
    color: #111827;
}

.modal-title--large {
    margin: 0;
    color: #111827;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.modal-footer-btn {
    color: #6366f1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Help Modal Content */
.help-section {
    margin-bottom: 30px;
}

.help-section--highlight {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
}

.help-title {
    color: #6366f1;
    margin-bottom: 10px;
}

.help-list {
    color: #6b7280;
    line-height: 1.8;
    margin-left: 20px;
}

.help-text {
    color: #6b7280;
    line-height: 1.8;
}

.help-contact {
    margin-top: 30px;
    text-align: center;
}

.help-contact-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.help-contact-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

/* AI Analysis Card - Hidden by default */
.ai-analysis-card {
    display: none;
}

.ai-analysis-card.active {
    display: block;
}

/* Agent Logs Container */
.agent-logs-container {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.agent-logs-container::-webkit-scrollbar {
    width: 8px;
}

.agent-logs-container::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

.agent-logs-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.agent-logs-container::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.agent-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    animation: logFadeIn 0.3s ease;
}

.agent-log-entry:last-child {
    border-bottom: none;
}

@keyframes logFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.agent-log-time {
    color: #64748b;
    font-weight: 600;
    min-width: 70px;
    flex-shrink: 0;
}

.agent-log-icon {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.agent-log-text {
    flex: 1;
    word-break: break-word;
}

/* Log Types */
.agent-log-system {
    color: #94a3b8;
}

.agent-log-system .agent-log-icon {
    color: #6366f1;
}

.agent-log-tool {
    color: #e2e8f0;
}

.agent-log-tool .agent-log-icon {
    color: #3b82f6;
}

.agent-log-success {
    color: #86efac;
}

.agent-log-success .agent-log-icon {
    color: #10b981;
}

.agent-log-error {
    color: #fca5a5;
}

.agent-log-error .agent-log-icon {
    color: #ef4444;
}

.agent-log-warning {
    color: #fcd34d;
}

.agent-log-warning .agent-log-icon {
    color: #f59e0b;
}

.agent-log-analysis {
    color: #c4b5fd;
}

.agent-log-analysis .agent-log-icon {
    color: #8b5cf6;
}

.agent-log-command {
    background: rgba(99, 102, 241, 0.1);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #6366f1;
    margin: 8px 0;
}

.agent-log-command .agent-log-text {
    color: #e2e8f0;
    font-weight: 600;
}

.agent-log-output {
    background: rgba(15, 23, 42, 0.5);
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
    border-left: 3px solid #334155;
}

.agent-log-output .agent-log-text {
    color: #cbd5e1;
    white-space: pre-wrap;
}

/* Chart container replacement */
.chart-container {
    height: 300px;
    width: 100%;
}

/* Clear Logs Button */
.btn-clear-logs {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-clear-logs:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-clear-logs:active {
    transform: translateY(0);
}

/* Agent Logs Header */
.agent-logs-header-text {
    margin: 5px 0 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.vuln-count.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.vuln-count.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gray-100);
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    .search-bar {
        width: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }

    .tools-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-bar-inline {
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .tools-selector {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .table-card {
        overflow-x: auto;
    }

    .data-table {
        min-width: 800px;
    }
}
