:root {
    --cloudy-primary: #0066FF;
    --cloudy-secondary: #00D4FF;
    --cloudy-dark: #0A192F;
    --cloudy-darker: #020617;
    --cloudy-light: #F8FAFC;
    --cloudy-gray: #64748B;
    --cloudy-warning: #F59E0B;
    --cloudy-danger: #EF4444;
    --cloudy-success: #10B981;
    --cloudy-gradient: linear-gradient(135deg, var(--cloudy-primary), var(--cloudy-secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cloudy-darker);
    color: var(--cloudy-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    background: var(--cloudy-gradient);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

.container {
    max-width: 1000px;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 102, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cloudy-gradient);
}

/* Header with LOGO as brand name */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.logo-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-image-container {
    background: rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    padding: 15px 30px;
    border: 2px solid rgba(0, 102, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 102, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-image-container:hover {
    border-color: rgba(0, 102, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 102, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.logo-image {
    width: 160px;
    height: 70px;
    object-fit: contain;
    filter: 
        brightness(1.1)
        contrast(1.1)
        drop-shadow(0 0 8px rgba(0, 102, 255, 0.4));
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--cloudy-gray);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    padding-top: 8px;
}

.brand-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 102, 255, 0.5), 
        transparent
    );
}

/* Threat Level Badge */
.threat-level {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    animation: threatPulse 2s infinite;
}

.threat-level i {
    color: var(--cloudy-danger);
}

.threat-value {
    color: var(--cloudy-danger);
    font-weight: 700;
}

@keyframes threatPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Alert section */
.alert-section {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.alert-icon {
    font-size: 2.5rem;
    color: var(--cloudy-danger);
    flex-shrink: 0;
}

.alert-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: white;
}

.alert-content p {
    color: var(--cloudy-gray);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.requested-host {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 255, 0.3);
    margin: 8px 0;
    word-break: break-all;
    font-size: 1.1rem;
}

/* WAF Status Cards */
.waf-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-icon.protection {
    background: rgba(16, 185, 129, 0.1);
    color: var(--cloudy-success);
}

.status-icon.monitoring {
    background: rgba(245, 158, 11, 0.1);
    color: var(--cloudy-warning);
}

.status-icon.security {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cloudy-danger);
}

.status-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.status-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--cloudy-gray);
}

.status-description {
    font-size: 0.9rem;
    color: var(--cloudy-gray);
    margin-top: 0.5rem;
}

/* Info Grid in Security Card */
.info-grid {
    margin-top: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    color: var(--cloudy-gray);
    font-weight: 500;
}

.info-value {
    color: var(--cloudy-light);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

/* Action buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--cloudy-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cloudy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cloudy-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Security footer */
.security-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--cloudy-gray);
    font-size: 0.9rem;
}

.security-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.incident-id {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 102, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-left: 10px;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--cloudy-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--cloudy-primary);
}

.copyright {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--cloudy-gray);
}

/* Scanner animation */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cloudy-gradient);
    opacity: 0.5;
    animation: scan 3s infinite linear;
}

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

/* Log entries */
.log-entries {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    padding: 6px 0;
    color: var(--cloudy-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--cloudy-primary);
}

.log-event {
    color: var(--cloudy-danger);
}

.severity-badge {
    color: var(--cloudy-warning);
    font-size: 0.7rem;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .alert-section {
        flex-direction: column;
        text-align: center;
    }
    
    .waf-status-grid {
        grid-template-columns: 1fr;
    }
    
    .security-info {
        flex-direction: column;
        text-align: center;
    }
    
    .actions {
        justify-content: center;
    }
    
    .logo-image-container {
        padding: 12px 20px;
    }
    
    .logo-image {
        width: 130px;
        height: 55px;
    }
    
    .brand-tagline {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .info-value {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .logo-image-container {
        padding: 10px 15px;
    }
    
    .logo-image {
        width: 110px;
        height: 45px;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}
