#medAlarm {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.92);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#medAlarm.active {
    display: flex;
}

.alarm-card {
    background: var(--surface);
    border-radius: 36px;
    padding: 48px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: alarmIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes alarmIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.alarm-bee {
    margin-bottom: 20px;
    animation: beeBounce 0.6s ease-in-out infinite alternate;
    display: inline-block;
    color: var(--bee);
}

@keyframes beeBounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

.alarm-med-name {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 8px;
}

.alarm-instruction {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 24px;
}

.alarm-progress {
    height: 10px;
    background: var(--canvas-2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
}

.alarm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--bee));
    border-radius: 5px;
    transition: width 1s linear;
}

.alarm-countdown {
    font-family: 'DM Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 32px;
}

.alarm-took-btn {
    background: linear-gradient(135deg, var(--brand), var(--bee));
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    padding: 24px;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(46, 154, 184, 0.4);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.alarm-took-btn:hover {
    transform: scale(1.02);
}

.alarm-actions {
    display: flex;
    gap: 12px;
}

.alarm-snooze {
    flex: 1;
    background: var(--amber-l);
    color: #7D4E00;
    border: 2px solid var(--amber);
    border-radius: var(--r-pill);
    padding: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.alarm-skip {
    flex: 1;
    background: transparent;
    color: var(--muted);
    border: 2px solid var(--rule-2);
    border-radius: var(--r-pill);
    padding: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
}