:root {
    --primary-red: #e62429;
    --primary-red-glow: rgba(230, 36, 41, 0.6);
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --shield-blue: #3498db;
    --shield-blue-glow: rgba(52, 152, 219, 0.6);
    --glass-bg: rgba(15, 20, 30, 0.6); /* Deeper, more solid glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --text-color: #f0f4f8;
    --bg-dark: #0a0e17;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top right, #1a2235, #0a0e17 70%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px var(--gold-glow); }
    50% { box-shadow: 0 0 25px rgba(255,215,0,0.6); }
    100% { box-shadow: 0 0 15px var(--gold-glow); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title {
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 5px 0;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-red-glow), 2px 2px 0px var(--primary-red);
}

.subtitle {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--shield-blue);
    opacity: 0.9;
}

.backup-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.15); /* Top highlight for depth */
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px var(--glass-highlight);
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

/* Subtle tech accent lines on panels */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 60px;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.glass-panel h2 {
    color: var(--gold);
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--shield-blue);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px var(--shield-blue-glow);
}

/* Buttons */
button {
    background: var(--primary-red);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--primary-red-glow);
    position: relative;
    overflow: hidden;
}

button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-red-glow);
    border-color: rgba(255,255,255,0.3);
}

button:active:not(:disabled) {
    transform: scale(0.96);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.btn-blue {
    background: var(--shield-blue);
    box-shadow: 0 4px 15px var(--shield-blue-glow);
}
button.btn-blue:hover:not(:disabled) {
    box-shadow: 0 8px 25px var(--shield-blue-glow);
}

button.btn-gold {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 15px var(--gold-glow);
}
button.btn-gold:hover:not(:disabled) {
    box-shadow: 0 8px 25px var(--gold-glow);
}

/* Incident Cards */
.incident-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-red);
    padding: 20px 25px;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.incident-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.incident-info h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.incident-info p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.incident-info strong {
    color: var(--shield-blue);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.status-active {
    background: rgba(230, 36, 41, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(230, 36, 41, 0.4);
    box-shadow: 0 0 10px rgba(230, 36, 41, 0.2);
}

.status-resolved {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.actions {
    display: flex;
    gap: 12px;
}

.btn-resolve {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.5);
    box-shadow: none;
}
.btn-resolve:hover:not(:disabled) {
    background: #2ecc71;
    color: #000;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-delete {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255,255,255,0.6);
    box-shadow: none;
}

.btn-delete:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary-red);
}

/* Tables for PII */
table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 12px 15px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255,255,255,0.8);
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Custom Scrollbar for table container */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Navigation Bar Styling */
.nav {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav a:hover {
    color: var(--shield-blue);
    text-shadow: 0 0 10px var(--shield-blue-glow);
}

.nav a.active {
    color: #fff;
    text-shadow: 0 0 10px var(--shield-blue-glow);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--shield-blue);
    box-shadow: 0 0 10px var(--shield-blue-glow);
}

/* Simulation Visualizers */
.sim-visualizer {
    height: 100px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px border var(--glass-border);
}

.terminal-mini {
    width: 100%;
    height: 60px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 8px;
    color: #00ff00;
    overflow-y: auto;
    background: #000;
    border-radius: 4px;
}

/* WAF Shield Animation */
.waf-shield {
    width: 50px;
    height: 50px;
    border: 3px solid var(--shield-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--shield-blue-glow);
    position: relative;
    z-index: 2;
}

.attack-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
    left: -20px;
    display: none;
}

@keyframes attack {
    0% { left: -20px; opacity: 1; transform: scale(1); }
    100% { left: 45%; opacity: 0; transform: scale(2); }
}

/* Scanning Effect */
.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--shield-blue);
    box-shadow: 0 0 15px var(--shield-blue);
    animation: scanLine 2s infinite linear;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Secrets Reveal */
.secret-char {
    display: inline-block;
    width: 12px;
    text-align: center;
}

.revealed-secret {
    color: var(--gold);
    font-weight: 800;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Horizontal Button Group */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-group button {
    flex: 1;
    margin-top: 0 !important;
    font-size: 0.7rem !important;
    padding: 10px 5px !important;
}

.status-success-waf {
    background: rgba(46, 204, 113, 0.25) !important;
    color: #2ecc71 !important;
    border: 1px solid #2ecc71 !important;
    font-weight: bold;
}
