/**
 * alarms.css — the "Alarme VOGO" screen of https://vogo.me/rag-ai/ (alarms.js; user, 20.10.2026, AGENTMOB D-065).
 * Laid out like the Samsung Clock's alarm screen — the next alarm on top, one card per alarm with the big time, the
 * days and a switch — in the page's own palette (rag-ai.css variables, light and dark) and VOGO blue.
 * @file_version 1.0.6 (24.10.2026: the card label on its own row, wrapped); 1.0.5
 */

/* Section: the full-screen list */
.alm { position: fixed; inset: 0; z-index: 105; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); }
.alm-bar { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.alm-title { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.alm-title .bi { color: var(--vogo-icon-blue); font-size: 20px; }
.alm-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; font-size: 20px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.alm-icon:hover { border-color: var(--acc); color: var(--acc); }
.alm-add { color: var(--vogo-icon-blue); }

/* The next alarm, large, as on the phone */
.alm-head { padding: 28px 18px 22px; text-align: center; }
.alm-next-title { font-size: 22px; font-weight: 600; line-height: 1.3; }
.alm-next-when { margin-top: 6px; font-size: 14px; color: var(--muted); }
.alm-error { margin: 0 14px 10px; padding: 8px 12px; border: 1px solid var(--off); border-radius: 5px; color: var(--off); font-size: 14px; }

.alm-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 14px calc(18px + env(safe-area-inset-bottom)); }
.alm-empty { padding: 30px 10px; text-align: center; color: var(--muted); }
/* The label takes its own row over the card (flex-wrap) and wraps, no ellipsis (user, 24.10.2026) */
.alm-card { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.alm-card:hover, .alm-card:focus-visible { border-color: var(--acc); outline: none; }
.alm-card-main { flex: 1; min-width: 0; }
.alm-label { flex: 0 0 100%; font-size: 14px; line-height: 1.35; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.alm-time { font-size: 40px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.alm-snoozed { font-size: 12px; color: var(--run); }
.alm-card.off .alm-time, .alm-card.off .alm-label, .alm-card.off .alm-days { opacity: .45; }

/* The days: the repeating ones in VOGO blue, the others faint; a one-time alarm shows Azi / Mâine / its date */
.alm-days { flex: none; display: flex; gap: 5px; font-size: 13px; color: var(--muted); }
.alm-day { width: 14px; text-align: center; }
.alm-day.on { color: var(--acc); font-weight: 700; }
.alm-once { white-space: nowrap; }

/* The switch */
.alm-switch { flex: none; position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.alm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.alm-switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--line); transition: background .15s; }
.alm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.alm-switch input:checked + span { background: var(--acc); }
.alm-switch input:checked + span::after { transform: translateX(20px); }
.alm-switch input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Section: the editor, a sheet from the bottom on the phone, a centred box on the laptop */
.alm-sheet { position: fixed; inset: 0; z-index: 106; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 12, 16, .5); }
.alm-sheet-box { width: min(480px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--panel); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
.alm-sheet-head { display: flex; align-items: center; gap: 8px; }
.alm-sheet-title { flex: 1; font-size: 17px; font-weight: 700; }
.alm-delete { color: var(--off); }
.alm-delete:hover { color: var(--off); border-color: var(--off); }
.alm-time-input { width: 100%; box-sizing: border-box; padding: 6px 10px; font: inherit; font-size: 48px; font-weight: 300; text-align: center; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; font-variant-numeric: tabular-nums; }
.alm-time-input:focus, .alm-label-input:focus { outline: none; border-color: var(--acc); }
.alm-sheet-when { text-align: center; font-size: 14px; color: var(--muted); }
.alm-sheet-days { display: flex; justify-content: space-between; gap: 6px; }
.alm-day-btn { width: 40px; height: 40px; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.alm-day-btn[aria-pressed="true"] { color: #fff; background: var(--acc); border-color: var(--acc); }
.alm-label-input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.alm-sheet-error { color: var(--off); font-size: 14px; }
.alm-sheet-actions { display: flex; gap: 10px; }
.alm-btn { flex: 1; height: 44px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 5px; cursor: pointer; }
.alm-cancel { color: var(--fg); background: transparent; border: 1px solid var(--line); }
.alm-save { color: #fff; background: var(--acc); border: 1px solid var(--acc); }
.alm-save:disabled { opacity: .6; cursor: default; }
@media (min-width: 601px) {
  .alm-sheet { align-items: center; }
  .alm-sheet-box { border-radius: var(--radius); }
  .alm-list, .alm-head { width: min(640px, 100%); box-sizing: border-box; margin-left: auto; margin-right: auto; }
}

/* The "Alarme VOGO" row of the menu button's pop-up (rag-ai.js) */
.font-pop-alarms button { display: flex; align-items: center; justify-content: center; }
.font-pop-alarms .alm-pop-icon { flex: none; margin-right: 10px; color: var(--vogo-icon-blue); }

/* "Oprește alarma care sună" (user, 20.10.2026; app 1.0.17): quiet when nothing rings, red with the alarm while one does */
.alm-ringing { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 14px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.alm-ringing-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--off); }
.alm-ringing-text:empty { display: none; }   /* nothing rings: the button takes the whole band, centred */
.alm-ringing .alm-mute { flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--fg); background: transparent; border: 1px solid var(--line); }
.alm-ringing .alm-mute .bi { color: var(--vogo-icon-blue); }
.alm-ringing.on { border-color: var(--off); }
.alm-ringing.on .alm-mute { color: #fff; background: var(--off); border-color: var(--off); }
.alm-ringing.on .alm-mute .bi { color: #fff; }
@media (min-width: 601px) {
  .alm-ringing { width: min(612px, calc(100% - 28px)); box-sizing: border-box; margin-left: auto; margin-right: auto; }
}

/* Section: the alarm pop-up on the laptop (alarms-laptop.js; user, 20.10.2026, AGENTMOB D-069) — over everything,
   the hour, the title, the YouTube song and the phone's buttons */
.alm-ring { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 12, 16, .6); }
.alm-ring-box { width: min(520px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--panel); color: var(--fg); border: 2px solid var(--off); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.alm-ring-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 30px; font-weight: 700; color: var(--off); font-variant-numeric: tabular-nums; }
.alm-ring-head .bi { animation: alm-ring-shake .5s ease-in-out infinite alternate; }
.alm-ring-title { text-align: center; font-size: 18px; font-weight: 600; }
.alm-ring-note { text-align: center; font-size: 14px; color: var(--muted); white-space: pre-line; }
.alm-ring-song { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 5px; background: #000; }
.alm-ring-nosong, .alm-ring-error { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; color: var(--muted); }
.alm-ring-error { border-color: var(--off); color: var(--off); }
.alm-ring-actions { display: flex; gap: 10px; }
.alm-ring-snooze { color: var(--fg); background: transparent; border: 1px solid var(--line); }
.alm-ring-stop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--off); border: 1px solid var(--off); }
@keyframes alm-ring-shake { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }

/* Where the alarm rings (D-070): the icons on the card, the two ticks in the editor */
.alm-devices { flex: none; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--vogo-icon-blue); }
.alm-card.off .alm-devices { opacity: .45; }
.alm-where { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.alm-where > span { color: var(--muted); }
.alm-where label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.alm-where input { width: 18px; height: 18px; accent-color: var(--acc); cursor: pointer; }
.alm-where .bi { color: var(--vogo-icon-blue); }
