/* Chaos Visualizer Styles */

/* Base Transitions */
body {
    transition: filter 1s ease, transform 1s ease, background-color 1s ease;
}

/* Level 1: Functional (Normal) */
body.status-functional {
    /* No changes */
}

/* Level 2: Tense (+5% Chaos) */
body.status-tense {
    filter: sepia(0.2) contrast(1.1);
}

body.status-tense .process-card:hover {
    transform: rotate(0.5deg);
}

/* Level 3: Dysfunctional */
body.status-dysfunctional {
    filter: sepia(0.4) contrast(1.2);
    font-family: 'Courier New', monospace; /* Bureaucratic upgrade */
}

body.status-dysfunctional .main-content {
    animation: slight-shake 5s infinite;
}

@keyframes slight-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
    20%, 40%, 60%, 80% { transform: translateX(1px); }
}

/* Level 4: Incapable */
body.status-incapable {
    filter: hue-rotate(15deg) contrast(1.3);
}

body.status-incapable button {
    animation: glitch-button 3s infinite;
}

body.status-incapable::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes glitch-button {
    0% { transform: translate(0); }
    2% { transform: translate(-2px, 2px); }
    4% { transform: translate(2px, -2px); }
    6% { transform: translate(0); }
    100% { transform: translate(0); }
}

/* Level 5: Reorganization (Max Chaos) */
body.status-reorganization {
    animation: panic-mode 10s infinite alternate;
}

body.status-reorganization * {
    /* Comic Sans for maximum unprofessionalism */
    font-family: "Comic Sans MS", "Comic Sans", cursive !important; 
}

body.status-reorganization .process-card {
    transform: rotate(1deg);
    border-radius: 0;
    box-shadow: 10px 10px 0px #000;
}

@keyframes panic-mode {
    0% { background-color: #1a1a1a; filter: hue-rotate(0deg); }
    100% { background-color: #2a0000; filter: hue-rotate(45deg); }
}

/* Tool Tip Glitch for chaotic levels */
body.status-dysfunctional .tooltip,
body.status-incapable .tooltip,
body.status-reorganization .tooltip {
    background: red !important;
    color: yellow !important;
    font-weight: bold;
    transform: rotate(-5deg);
}
