/* =========================================================================
   Enterprise SOC Dashboard Dedicated CSS
   ========================================================================= */

body.dashboard-body {
    display: block;
    padding: 20px 25px;
    background-color: #070b12;
    min-height: 100vh;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #e2e8f0;
}

.dash-wrapper {
    max-width: 1250px;
    margin: 0 auto;
}

/* Header */
.main-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 26, 43, 0.92);
    border: 1px solid #1e2d4a;
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.dash-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shield-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 210, 255, 0.1);
    border: 1.5px solid #00d2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d2ff;
    font-size: 1.4rem;
}

.dash-logo-area h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.dash-logo-area p {
    font-size: 0.76rem;
    color: #64748b;
}

.dash-user-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-indicator-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

.admin-profile-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.admin-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.admin-title {
    font-size: 0.7rem;
    color: #00d2ff;
}

.logout-action-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logout-action-btn:hover {
    background: #ff3366;
    border-color: #ff3366;
    color: #ffffff;
}

/* 5 Navigation Tabs */
.module-nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.nav-tab-btn {
    background: #0f172a;
    border: 1px solid #1e2d4a;
    color: #94a3b8;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tab-btn:hover {
    background: #16243d;
    color: #ffffff;
    border-color: #00d2ff;
}

.nav-tab-btn.active {
    background: linear-gradient(135deg, #0f2747 0%, #113661 100%);
    border-color: #00d2ff;
    color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.tab-icon {
    font-size: 1rem;
}

/* Tab Content Panels */
.tab-content-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-panel.active {
    display: block;
}

.tab-header-box {
    background: rgba(18, 26, 43, 0.6);
    border: 1px solid #1e2d4a;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.tab-header-box h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.tab-header-box p {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Content Grid */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

.content-card {
    background: rgba(18, 26, 43, 0.9);
    border: 1px solid #1e2d4a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e2d4a;
}

.card-title-bar h2 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.badge-status-green {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
}

.actions-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 14px;
}

/* Cisco Tab Details */
.vlan-badge-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.vlan-pill {
    padding: 10px 14px;
    border-radius: 6px;
    background: #09101f;
    border-left: 4px solid;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vlan-pill.v10 { border-left-color: #00d2ff; }
.vlan-pill.v20 { border-left-color: #00ff88; }
.vlan-pill.v30 { border-left-color: #ffb703; }

.vlan-pill strong { font-size: 0.78rem; color: #ffffff; }
.vlan-pill span { font-size: 0.7rem; color: #94a3b8; }

.switch-port-status-bar h4 {
    font-size: 0.76rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.ports-visual-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.port-item {
    background: #0f172a;
    border: 1px solid #1e2d4a;
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.port-item.secure {
    border-color: #00ff88;
    color: #00ff88;
}

.port-item.disabled {
    background: rgba(255, 51, 102, 0.15);
    border-color: #ff3366;
    color: #ff3366;
    animation: pulse 1s infinite;
}

/* Compliance Checklist */
.compliance-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compliance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #09101f;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 10px 14px;
}

.check-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: #00ff88;
    font-weight: bold;
    font-size: 1.1rem;
}

.check-left strong {
    display: block;
    font-size: 0.8rem;
    color: #ffffff;
}

.check-left small {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
}

.status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-badge.green {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.pill-action-btn {
    background: #13243d;
    border: 1px solid #00d2ff;
    color: #00d2ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-action-btn:hover {
    background: #00d2ff;
    color: #001226;
}

/* Explanation Box */
.explanation-box {
    background: #09101f;
    border: 1px dashed #1e2d4a;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.5;
}

.explanation-box h4 {
    color: #00d2ff;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

/* Feed Scroll Box */
.feed-scroll-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.feed-row {
    background: #09101f;
    border-left: 3px solid;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.74rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: fadeIn 0.3s ease;
}

.feed-row.success { border-left-color: #00ff88; }
.feed-row.danger { border-left-color: #ff3366; }
.feed-row.info { border-left-color: #00d2ff; }
.feed-row.warning { border-left-color: #ffb703; }

.feed-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #00d2ff;
}

.feed-text {
    color: #e2e8f0;
}

/* Interactive Action Buttons */
.interactive-btns-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-btn {
    width: 100%;
    background: #0f172a;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.sim-btn:hover {
    background: #14223d;
    border-color: #00d2ff;
    transform: translateX(4px);
}

.sim-btn-icon { font-size: 1.2rem; }
.sim-btn-text strong { display: block; font-size: 0.8rem; color: #ffffff; }
.sim-btn-text span { display: block; font-size: 0.68rem; color: #64748b; }

.sim-btn.scan:hover strong { color: #ff3366; }
.sim-btn.rogue:hover strong { color: #ffb703; }
.sim-btn.audit:hover strong { color: #00ff88; }

.alert-box-result {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.74rem;
    animation: fadeIn 0.3s ease;
}

.alert-box-result.danger {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid #ff3366;
    color: #ff3366;
}

.alert-box-result.success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid #00ff88;
    color: #00ff88;
}

/* Cryptography Playground */
.crypto-playground-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crypto-output-boxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #09101f;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 12px 14px;
}

.crypto-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crypto-label {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

.crypto-field code {
    font-family: Consolas, monospace;
    font-size: 0.76rem;
    color: #00d2ff;
    word-break: break-all;
}

/* Q&A Accordion */
.qa-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.qa-item {
    background: #09101f;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.76rem;
}

.qa-item summary {
    cursor: pointer;
    color: #00d2ff;
    font-weight: 600;
    margin-bottom: 4px;
}

.qa-item p {
    color: #cbd5e1;
    line-height: 1.4;
    margin-top: 6px;
}

.slide-ordered-list {
    padding-left: 20px;
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.slide-ordered-list strong {
    color: #00d2ff;
}

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

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