/* Miorița Desk Assistant — fereastra care sună (alarme, timere, mementouri) și notificările scurte.
   Culori neutre, compatibile cu tema luminoasă și întunecată. */
.dk-host { position: fixed; inset: auto 16px 16px auto; z-index: 2147483000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.dk-host > * { pointer-events: auto; }

.dk-ring {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); animation: dk-fade .2s ease both;
}
.dk-ring-card {
  width: min(420px, 100%); background: #ffffff; color: #0f172a; border-radius: 22px; padding: 28px 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); text-align: center; font-family: inherit; animation: dk-pop .25s ease both;
}
@media (prefers-color-scheme: dark) { .dk-ring-card { background: #111827; color: #f1f5f9; } }
:root[data-theme="dark"] .dk-ring-card, body.dark .dk-ring-card { background: #111827; color: #f1f5f9; }
:root[data-theme="light"] .dk-ring-card { background: #ffffff; color: #0f172a; }
.dk-ring-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 185, 129, .14); color: #10b981; }
.dk-alarm .dk-ring-icon, .dk-timer .dk-ring-icon { animation: dk-shake 1s ease-in-out infinite; }
.dk-ring-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-ring-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.dk-ring-title { font-size: 22px; line-height: 1.3; margin: 6px 0 8px; font-weight: 700; word-break: break-word; }
.dk-ring-body { font-size: 14px; line-height: 1.55; opacity: .8; margin: 0 0 18px; word-break: break-word; }
.dk-ring-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.dk-btn {
  font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(100, 116, 139, .35); background: transparent; color: inherit; min-width: 110px;
}
.dk-btn:hover { background: rgba(100, 116, 139, .12); }
.dk-btn-primary { background: #10b981; border-color: #10b981; color: #fff; }
.dk-btn-primary:hover { background: #059669; }
.dk-btn:focus-visible { outline: 3px solid rgba(16, 185, 129, .45); outline-offset: 2px; }

.dk-toast {
  display: flex; align-items: center; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 12px 14px;
  background: #ffffff; color: #0f172a; border: 1px solid rgba(100, 116, 139, .25); border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18); animation: dk-pop .25s ease both; font-size: 13.5px;
}
@media (prefers-color-scheme: dark) { .dk-toast { background: #111827; color: #f1f5f9; } }
:root[data-theme="dark"] .dk-toast { background: #111827; color: #f1f5f9; }
:root[data-theme="light"] .dk-toast { background: #ffffff; color: #0f172a; }
.dk-toast-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(16, 185, 129, .14); color: #10b981; }
.dk-toast-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-toast-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dk-toast-main strong { font-weight: 600; word-break: break-word; }
.dk-toast-main span { opacity: .75; font-size: 12.5px; word-break: break-word; }
.dk-toast-link { color: #10b981; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dk-toast-x { border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .55; padding: 2px 4px; }
.dk-toast-x:hover { opacity: 1; }

@keyframes dk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dk-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dk-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .dk-ring, .dk-ring-card, .dk-toast, .dk-ring-icon { animation: none !important; } }
