/* Crisis Progress Bar */
.danger-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 8px;
    height: 24px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.danger-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px 0 0 8px;
    transition: width 0.5s ease-in-out, background-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.danger-low {
    background-color: #2ecc71;
    /* Green */
}

.danger-med {
    background-color: #f1c40f;
    /* Yellow */
}

.danger-high {
    background-color: #e74c3c;
    /* Red */
}

/* Red Flash Animation */
@keyframes shake-flash {
    0% {
        transform: translateX(0);
        background-color: rgba(231, 76, 60, 0.1);
    }

    25% {
        transform: translateX(-5px);
        background-color: rgba(231, 76, 60, 0.3);
    }

    50% {
        transform: translateX(5px);
        background-color: rgba(231, 76, 60, 0.1);
    }

    75% {
        transform: translateX(-5px);
        background-color: rgba(231, 76, 60, 0.3);
    }

    100% {
        transform: translateX(0);
        background-color: transparent;
    }
}

.shake-effect {
    animation: shake-flash 0.5s cubic-bezier(.36, .07, .19, .97) both;
}
/* Analysis Box */
.analysis-box {
    background-color: #e8f5e9;
    border-left: 5px solid #2ecc71;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: #2c3e50;
}

.analysis-title {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 0.5rem;
    display: block;
}

/* Options Buttons */
.option-btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px solid var(--pico-primary-background);
    color: var(--pico-primary-background);
    border-radius: var(--pico-border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background-color: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}

.option-label {
    font-weight: bold;
    margin-right: 0.5rem;
}
