.panel-card {
    background: linear-gradient(145deg, #222, #111);
    border: 4px solid #333;
    border-right-color: #000;
    border-bottom-color: #000;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

.panel-card h2 {
    color: #ff5c5c;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    font-weight: 900;
}

.annunciator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #0a0a0a;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #0a0a0a;
}

.annunciator {
    position: relative;
    padding: 30px 10px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
    transition: all 0.1s ease;
    border: 3px solid #111;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.annunciator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://www.transparenttextures.com");
    opacity: 0.1;
    pointer-events: none;
}

.annunciator:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.annunciator:active {
    transform: translateY(2px);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.yellow {
    background: radial-gradient(circle, #f5c542 0%, #b38914 100%);
    color: rgba(0, 0, 0, 0.8);
    border-color: #7a5d0d;
}

.blue {
    background: radial-gradient(circle, #3a86ff 0%, #1a3c7a 100%);
    color: #000000;
    border-color: #152b57;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.red {
    background: radial-gradient(circle, #ff3b3b 0%, #7a0000 100%);
    color: #000000;
    border-color: #4a0000;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    animation: subtlePulse 2s infinite ease-in-out;
}

.green {
    background: radial-gradient(circle, #2ecc71 0%, #145a32 100%);
    color: rgba(0, 0, 0, 0.8);
    border-color: #0b331c;
}

.blank {
    background: radial-gradient(circle, #000000 0%, #000000 100%);
    color: rgba(0, 0, 0, 0.8);
    border-color: #000000;
}

@keyframes subtlePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.90;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(15px) grayscale(1);
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #151515;
    border: 2px solid #333;
    padding: 40px;
    border-radius: 4px;
    width: 750px;
    max-width: 95%;
    text-align: left;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    border-left: 10px solid #ff5c5c;
}

.modal h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alarm-colour {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #ff5c5c;
    font-weight: 900;
}

.modal p {
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    font-family: 'Courier New', Courier, monospace;
}

.close-btn {
    margin-top: 30px;
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 12px 25px;
    border-radius: 2px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.2s;
}

.close-btn:hover {
    background: #ff5c5c;
    color: #000;
}
