/* ═══════════════════════════════════════════════════════
   PRAXISMED — Premium Home Widgets
   Substitui o widgets.css atual.
   Objetivo: widgets mais premium, limpos, com menos azul pesado
   e mais cara de app iPadOS / Apple / Linear.
   ═══════════════════════════════════════════════════════ */

:root {
    --wdg-accent: #2563eb;
    --wdg-accent-2: #06b6d4;
    --wdg-accent-soft: rgba(37, 99, 235, 0.10);
    --wdg-accent-softer: rgba(37, 99, 235, 0.055);
    --wdg-success: #16a34a;
    --wdg-success-soft: rgba(22, 163, 74, 0.10);
    --wdg-warning: #f59e0b;
    --wdg-warning-soft: rgba(245, 158, 11, 0.12);
    --wdg-danger: #ef4444;
    --wdg-danger-soft: rgba(239, 68, 68, 0.10);
    --wdg-surface: rgba(255, 255, 255, 0.76);
    --wdg-surface-strong: rgba(255, 255, 255, 0.92);
    --wdg-border: rgba(17, 24, 39, 0.08);
    --wdg-shadow: 0 18px 45px rgba(15, 23, 42, 0.075);
    --wdg-shadow-hover: 0 24px 70px rgba(15, 23, 42, 0.12);
    --wdg-radius: 24px;
    --wdg-radius-sm: 16px;
}

body.dark-mode {
    --wdg-surface: rgba(22, 22, 34, 0.72);
    --wdg-surface-strong: rgba(29, 29, 43, 0.92);
    --wdg-border: rgba(255, 255, 255, 0.09);
    --wdg-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    --wdg-shadow-hover: 0 26px 76px rgba(0, 0, 0, 0.36);
}

/* ── Base premium para qualquer card de widget ── */
.widget-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--wdg-radius);
    border: 1px solid var(--wdg-border);
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.105), transparent 34%),
        linear-gradient(145deg, var(--wdg-surface-strong), var(--wdg-surface));
    box-shadow: var(--wdg-shadow);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.28s ease;
}

.widget-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), transparent 38%);
    opacity: 0.55;
}

body.dark-mode .widget-card::after {
    opacity: 0.10;
}

.widget-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wdg-shadow-hover);
    border-color: rgba(37, 99, 235, 0.18);
}

.widget-card > * {
    position: relative;
    z-index: 1;
}

/* ── Shared Widget Title ── */
.widget-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(17, 24, 39, 0.055);
    color: var(--ipad-text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1;
    text-transform: uppercase;
}

body.dark-mode .widget-title {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.075);
}

/* ──────────────────────────────────────────────
   WIDGET 1 — POMODORO TIMER
   ────────────────────────────────────────────── */

.wdg-pomodoro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.wdg-pomo-display {
    width: 100%;
    text-align: center;
    padding: 2px 0 4px;
}

.wdg-pomo-orb {
    --pomo-progress: 0%;
    position: relative;
    width: min(168px, 72vw);
    aspect-ratio: 1;
    margin: 2px auto 14px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        conic-gradient(from -90deg, var(--wdg-accent) var(--pomo-progress), rgba(148, 163, 184, 0.14) 0),
        linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.58));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 22px 55px rgba(37, 99, 235, 0.16);
}

.wdg-pomo-orb::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 42% 20%, rgba(255,255,255,0.92), transparent 28%),
        linear-gradient(160deg, var(--wdg-surface-strong), var(--wdg-surface));
    border: 1px solid var(--wdg-border);
}

body.dark-mode .wdg-pomo-orb {
    background:
        conic-gradient(from -90deg, #60a5fa var(--pomo-progress), rgba(255,255,255,0.10) 0),
        linear-gradient(145deg, rgba(41, 41, 60, 0.92), rgba(20, 20, 30, 0.72));
    box-shadow: 0 22px 70px rgba(0,0,0,0.32);
}

.wdg-pomo-orb-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wdg-pomo-phase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.095em;
    line-height: 1;
    text-transform: uppercase;
}

.wdg-pomo-phase.focus {
    background: var(--wdg-accent-soft);
    color: var(--wdg-accent);
}

.wdg-pomo-phase.break {
    background: var(--wdg-success-soft);
    color: var(--wdg-success);
}

.wdg-pomo-time {
    color: var(--ipad-text);
    font-size: clamp(2.05rem, 5vw, 2.9rem);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.wdg-pomo-cycle-label {
    margin-top: 1px;
    color: var(--ipad-text-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.wdg-pomo-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.09);
    border: 1px solid var(--wdg-border);
}

.wdg-pomo-setting-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: var(--wdg-surface-strong);
    color: var(--ipad-text);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.wdg-pomo-setting-btn:hover {
    background: var(--wdg-accent);
    color: #fff;
    transform: translateY(-1px);
}

.wdg-pomo-setting-btn:active {
    transform: scale(0.92);
}

.wdg-pomo-setting-val {
    min-width: 48px;
    color: var(--ipad-text);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.wdg-pomo-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wdg-pomo-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--wdg-border);
    background: var(--wdg-surface-strong);
    color: var(--ipad-text);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.075);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s cubic-bezier(0.2,0.8,0.2,1),
                box-shadow 0.18s ease,
                background 0.18s ease;
}

.wdg-pomo-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.wdg-pomo-btn:active {
    transform: scale(0.94);
}

.wdg-pomo-btn.start {
    border-color: rgba(249, 115, 22, 0.20);
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed);
    color: white;
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.28);
}

body.dark-mode .wdg-pomo-btn.start {
    background: linear-gradient(135deg, #fb923c, #f97316 40%, #a78bfa);
    color: #1a0a2e;
}

.wdg-pomo-btn.pause {
    border-color: rgba(245, 158, 11, 0.18);
    background: linear-gradient(135deg, #fffbeb, #f59e0b);
    color: #5b3300;
}

.wdg-pomo-btn.reset {
    background: rgba(148, 163, 184, 0.085);
}

.wdg-pomo-btn svg {
    width: 18px;
    height: 18px;
}

/* Pomodoro Floating Bubble */
#wdg-pomo-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.82);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#wdg-pomo-float.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wdg-pomo-float-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.38);
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed);
    color: white;
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.34);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wdg-pomo-float-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 24px 60px rgba(49, 46, 129, 0.42);
}

.wdg-pomo-float-btn svg {
    width: 24px;
    height: 24px;
}

.wdg-pomo-float-timer {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 38px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 2px solid var(--wdg-surface-strong);
    background: var(--ipad-text);
    color: var(--wdg-surface-strong);
    font-size: 0.63rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.wdg-pomo-float-popup {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 286px;
    display: none;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid var(--wdg-border);
    background: linear-gradient(145deg, var(--wdg-surface-strong), var(--wdg-surface));
    box-shadow: 0 28px 85px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

.wdg-pomo-float-popup.open {
    display: block;
}

.wdg-pomo-float-popup .wdg-pomo-orb {
    width: 174px;
}

/* ──────────────────────────────────────────────
   WIDGET 2 — TEMAS QUE PRECISAM DE ATENÇÃO
   ────────────────────────────────────────────── */

.wdg-temas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wdg-temas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wdg-temas-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--wdg-border);
    background: rgba(255, 255, 255, 0.48);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .wdg-temas-item {
    background: rgba(255, 255, 255, 0.045);
}

.wdg-temas-item:hover {
    transform: translateX(2px);
    background: rgba(255,255,255,0.72);
    border-color: rgba(37, 99, 235, 0.16);
}

body.dark-mode .wdg-temas-item:hover {
    background: rgba(255,255,255,0.075);
}

.wdg-temas-icon {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    background: var(--wdg-warning-soft);
}

.wdg-temas-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wdg-temas-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wdg-temas-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ipad-text);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.wdg-temas-sub {
    color: var(--ipad-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.wdg-temas-bar-wrap {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
}

.wdg-temas-bar {
    height: 100%;
    border-radius: inherit;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wdg-temas-pct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: right;
}

.wdg-temas-action {
    color: var(--ipad-text-muted);
    font-size: 1rem;
    font-weight: 800;
}

.wdg-temas-empty,
.wdg-goal-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(37, 99, 235, 0.20);
    background: var(--wdg-accent-softer);
}

.wdg-temas-empty-icon,
.wdg-goal-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(37,99,235,0.16), rgba(6,182,212,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wdg-temas-empty-icon svg,
.wdg-goal-empty-icon svg {
    width: 19px;
    height: 19px;
    color: var(--wdg-accent);
}

.wdg-temas-empty-text,
.wdg-goal-empty-text {
    color: var(--ipad-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

/* ──────────────────────────────────────────────
   WIDGET 3 — WEEKLY SUMMARY
   ────────────────────────────────────────────── */

.wdg-weekly {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wdg-weekly-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,0.14), transparent 36%),
        rgba(255, 255, 255, 0.46);
    border: 1px solid var(--wdg-border);
}

body.dark-mode .wdg-weekly-hero {
    background:
        radial-gradient(circle at 100% 0%, rgba(96,165,250,0.16), transparent 36%),
        rgba(255,255,255,0.045);
}

.wdg-weekly-hero-label {
    color: var(--ipad-text-muted);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.wdg-weekly-hero-value {
    margin-top: 3px;
    color: var(--ipad-text);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.wdg-weekly-hero-note {
    color: var(--ipad-text-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.wdg-weekly-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.wdg-weekly-score-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--wdg-accent-soft);
    color: var(--wdg-accent);
    font-size: 0.8rem;
    font-weight: 850;
}

.wdg-weekly-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 7px;
    height: 72px;
    padding: 4px 0 2px;
}

.wdg-weekly-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 100%;
}

.wdg-weekly-bar {
    position: relative;
    width: 100%;
    max-width: 28px;
    min-height: 5px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.22));
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
}

body.dark-mode .wdg-weekly-bar {
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.18));
}

.wdg-weekly-bar.today {
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.wdg-weekly-bar-wrap:hover .wdg-weekly-bar {
    transform: translateY(-2px);
}

.wdg-weekly-bar-label {
    color: var(--ipad-text-muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wdg-weekly-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wdg-weekly-stat {
    padding: 10px 8px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.075);
    border: 1px solid var(--wdg-border);
    text-align: center;
}

.wdg-weekly-stat-val {
    color: var(--ipad-text);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.wdg-weekly-stat-label {
    margin-top: 2px;
    color: var(--ipad-text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ──────────────────────────────────────────────
   WIDGET 4 — META SEMANAL
   ────────────────────────────────────────────── */

.wdg-goal {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wdg-goal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wdg-goal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.wdg-goal-kicker {
    color: var(--ipad-text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.wdg-goal-count {
    margin-top: 4px;
    color: var(--ipad-text);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

.wdg-goal-count.achieved {
    color: var(--wdg-success);
}

.wdg-goal-status {
    margin-top: 5px;
    color: var(--ipad-text-muted);
    font-size: 0.80rem;
    font-weight: 650;
    line-height: 1.35;
}

.wdg-goal-percent {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    min-width: 58px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--wdg-accent-soft);
    color: var(--wdg-accent);
    font-size: 0.92rem;
    font-weight: 900;
}

.wdg-goal-percent.achieved {
    background: var(--wdg-success-soft);
    color: var(--wdg-success);
}

.wdg-goal-progress {
    position: relative;
    width: 100%;
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.wdg-goal-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111827, #2563eb 58%, #06b6d4);
    box-shadow: 0 8px 26px rgba(37, 99, 235, 0.24);
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.wdg-goal-progress-fill.achieved {
    background: linear-gradient(90deg, #15803d, #22c55e);
    box-shadow: 0 8px 26px rgba(22, 163, 74, 0.22);
}

.wdg-goal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--ipad-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.wdg-goal-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 0;
    border: none;
    background: none;
    color: var(--wdg-accent);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: none;
}

.wdg-goal-empty-btn:hover {
    color: #1d4ed8;
}

/* Mantém compatibilidade caso algum HTML antigo ainda use o ring */
.wdg-goal-ring-wrap,
.wdg-goal-ring-svg,
.wdg-goal-ring-bg,
.wdg-goal-ring-fill,
.wdg-goal-ring-center,
.wdg-goal-info,
.wdg-goal-label {
    transition: all 0.25s ease;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

@media (max-width: 900px) {
    #wdg-pomo-float {
        bottom: 80px;
        right: 16px;
    }

    .wdg-pomo-float-btn {
        width: 50px;
        height: 50px;
    }

    .wdg-pomo-float-popup {
        width: 242px;
        right: -8px;
    }
}

@media (max-width: 600px) {
    .widget-card {
        padding: 16px;
        border-radius: 22px;
    }

    .widget-title {
        margin-bottom: 12px;
    }

    .wdg-pomo-orb {
        width: 144px;
    }

    .wdg-pomo-time {
        font-size: 2.08rem;
    }

    .wdg-temas-item {
        grid-template-columns: auto 1fr;
    }

    .wdg-temas-action {
        display: none;
    }

    .wdg-weekly-chart {
        height: 58px;
    }

    .wdg-weekly-hero {
        grid-template-columns: 1fr;
    }

    .wdg-weekly-score {
        align-items: flex-start;
    }

    #wdg-pomo-float {
        bottom: 72px;
        right: 12px;
    }

    .wdg-pomo-float-btn {
        width: 46px;
        height: 46px;
    }
}

/* ═══════════════════════════════════════════════════════
   PRAXISMED — Compact Premium Fix
   Ajuste: cards menores, menos respiro exagerado, menos aparência de protótipo.
   Mantém a identidade premium, mas deixa os widgets mais densos e utilizáveis.
   ═══════════════════════════════════════════════════════ */

:root {
    --wdg-accent: #2563eb;
    --wdg-accent-2: #0891b2;
    --wdg-accent-soft: rgba(37, 99, 235, 0.075);
    --wdg-accent-softer: rgba(37, 99, 235, 0.04);
    --wdg-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    --wdg-shadow-hover: 0 16px 42px rgba(15, 23, 42, 0.095);
    --wdg-radius: 18px;
    --wdg-radius-sm: 13px;
}

.widget-card {
    border-radius: var(--wdg-radius) !important;
    box-shadow: var(--wdg-shadow) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.055), transparent 32%),
        linear-gradient(145deg, var(--wdg-surface-strong), var(--wdg-surface)) !important;
}

.widget-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--wdg-shadow-hover) !important;
}

.widget-card::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 34%) !important;
    opacity: 0.42 !important;
}

.widget-title {
    margin-bottom: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ipad-text-muted) !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.055em !important;
}

/* Pomodoro compacto */
.wdg-pomodoro {
    gap: 8px !important;
}

.wdg-pomo-display {
    padding: 0 !important;
}

.wdg-pomo-orb {
    width: min(118px, 54vw) !important;
    margin: 0 auto 8px !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.75),
        0 10px 28px rgba(37, 99, 235, 0.10) !important;
}

.wdg-pomo-orb::before {
    inset: 7px !important;
}

.wdg-pomo-orb-inner {
    gap: 2px !important;
}

.wdg-pomo-phase {
    margin-bottom: 0 !important;
    padding: 3px 7px !important;
    font-size: 0.49rem !important;
    letter-spacing: 0.075em !important;
}

.wdg-pomo-time {
    font-size: clamp(1.55rem, 3.6vw, 2rem) !important;
    letter-spacing: -0.05em !important;
}

.wdg-pomo-cycle-label {
    font-size: 0.60rem !important;
}

.wdg-pomo-settings {
    gap: 6px !important;
    padding: 4px !important;
}

.wdg-pomo-setting-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.88rem !important;
}

.wdg-pomo-setting-val {
    min-width: 40px !important;
    font-size: 0.70rem !important;
}

.wdg-pomo-controls {
    gap: 7px !important;
}

.wdg-pomo-btn {
    width: 34px !important;
    height: 34px !important;
    box-shadow: 0 5px 13px rgba(15, 23, 42, 0.065) !important;
}

.wdg-pomo-btn svg {
    width: 15px !important;
    height: 15px !important;
}

.wdg-pomo-btn.start {
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed) !important;
    box-shadow: 0 9px 22px rgba(249, 115, 22, 0.18) !important;
}

.wdg-pomo-float-btn {
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.24) !important;
}

.wdg-pomo-float-popup {
    width: 226px !important;
    padding: 14px !important;
    border-radius: 18px !important;
}

.wdg-pomo-float-popup .wdg-pomo-orb {
    width: 116px !important;
}

/* Temas de atenção compacto */
.wdg-temas,
.wdg-temas-list {
    gap: 7px !important;
}

.wdg-temas-item {
    grid-template-columns: 26px 1fr 14px !important;
    gap: 9px !important;
    padding: 8px 9px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.42) !important;
}

.wdg-temas-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 10px !important;
    font-size: 0.72rem !important;
}

.wdg-temas-info {
    gap: 3px !important;
}

.wdg-temas-name {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
}

.wdg-temas-sub {
    font-size: 0.60rem !important;
}

.wdg-temas-bar-wrap {
    height: 4px !important;
}

.wdg-temas-pct {
    min-width: 34px !important;
    padding: 3px 6px !important;
    font-size: 0.63rem !important;
}

.wdg-temas-action {
    font-size: 0.86rem !important;
}

.wdg-temas-empty,
.wdg-goal-empty {
    gap: 9px !important;
    padding: 10px !important;
    border-radius: 14px !important;
}

.wdg-temas-empty-icon,
.wdg-goal-empty-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px !important;
}

.wdg-temas-empty-text,
.wdg-goal-empty-text {
    font-size: 0.73rem !important;
}

/* Resumo semanal compacto */
.wdg-weekly {
    gap: 9px !important;
}

.wdg-weekly-hero {
    padding: 10px 11px !important;
    border-radius: 15px !important;
    gap: 8px !important;
}

.wdg-weekly-hero-label {
    font-size: 0.60rem !important;
}

.wdg-weekly-hero-value {
    margin-top: 1px !important;
    font-size: clamp(1.45rem, 3.2vw, 1.95rem) !important;
}

.wdg-weekly-hero-note {
    font-size: 0.68rem !important;
}

.wdg-weekly-score-pill {
    padding: 5px 8px !important;
    font-size: 0.68rem !important;
}

.wdg-weekly-chart {
    height: 48px !important;
    gap: 5px !important;
    padding: 1px 0 0 !important;
}

.wdg-weekly-bar {
    max-width: 22px !important;
    min-height: 4px !important;
}

.wdg-weekly-bar-label {
    font-size: 0.49rem !important;
}

.wdg-weekly-stats {
    gap: 6px !important;
}

.wdg-weekly-stat {
    padding: 7px 6px !important;
    border-radius: 12px !important;
}

.wdg-weekly-stat-val {
    font-size: 0.86rem !important;
}

.wdg-weekly-stat-label {
    font-size: 0.49rem !important;
}

/* Meta semanal compacta */
.wdg-goal,
.wdg-goal-body {
    gap: 9px !important;
}

.wdg-goal-top {
    gap: 10px !important;
}

.wdg-goal-kicker {
    font-size: 0.62rem !important;
}

.wdg-goal-count {
    margin-top: 2px !important;
    font-size: clamp(1.25rem, 3vw, 1.65rem) !important;
}

.wdg-goal-status {
    margin-top: 3px !important;
    font-size: 0.68rem !important;
}

.wdg-goal-percent {
    min-width: 48px !important;
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 0.76rem !important;
}

.wdg-goal-progress {
    height: 9px !important;
}

.wdg-goal-footer {
    font-size: 0.62rem !important;
}

.wdg-goal-empty-btn {
    margin-top: 3px !important;
    font-size: 0.70rem !important;
}

@media (max-width: 600px) {
    .widget-card {
        padding: 12px !important;
        border-radius: 17px !important;
    }

    .widget-title {
        margin-bottom: 7px !important;
    }

    .wdg-pomo-orb {
        width: 108px !important;
    }

    .wdg-pomo-time {
        font-size: 1.55rem !important;
    }

    .wdg-temas-item {
        grid-template-columns: 24px 1fr !important;
        padding: 8px !important;
    }

    .wdg-weekly-chart {
        height: 42px !important;
    }
}


/* ═══════════════════════════════════════════════════════
   PRAXISMED — Final Widget Polish
   Correções solicitadas:
   - remove 100% a luz branca que ofuscava o texto;
   - tira botões roxos chapados;
   - melhora leitura/tipografia;
   - deixa ícones dos botões visíveis;
   - acabamento mais profissional e discreto.
   ═══════════════════════════════════════════════════════ */

:root {
    --wdg-accent: #2563eb;
    --wdg-accent-2: #06b6d4;
    --wdg-accent-soft: rgba(37, 99, 235, 0.10);
    --wdg-accent-softer: rgba(37, 99, 235, 0.045);
    --wdg-btn-bg: rgba(255, 255, 255, 0.72);
    --wdg-btn-bg-hover: rgba(255, 255, 255, 0.92);
    --wdg-btn-border: rgba(148, 163, 184, 0.22);
    --wdg-card-bg: rgba(255, 255, 255, 0.78);
    --wdg-card-bg-2: rgba(248, 250, 252, 0.72);
}

body.dark-mode {
    --wdg-btn-bg: rgba(255, 255, 255, 0.075);
    --wdg-btn-bg-hover: rgba(255, 255, 255, 0.13);
    --wdg-btn-border: rgba(255, 255, 255, 0.13);
    --wdg-card-bg: rgba(31, 31, 45, 0.70);
    --wdg-card-bg-2: rgba(14, 14, 24, 0.58);
}

.widget-card {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Segoe UI, sans-serif !important;
    background: linear-gradient(145deg, var(--wdg-card-bg), var(--wdg-card-bg-2)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body.dark-mode .widget-card {
    border-color: rgba(255, 255, 255, 0.075) !important;
}

/* Remove completamente a luz branca sobre os cards */
.widget-card::after,
.widget-card::before {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
}

.widget-title {
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    color: var(--ipad-text) !important;
    opacity: 0.72 !important;
}

/* Pomodoro — limpo e neutro */
.wdg-pomo-orb {
    background:
        conic-gradient(from -90deg, var(--wdg-accent) var(--pomo-progress), rgba(148, 163, 184, 0.16) 0),
        rgba(148, 163, 184, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18), 0 8px 22px rgba(15, 23, 42, 0.12) !important;
}

.wdg-pomo-orb::before {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.015)) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

body.dark-mode .wdg-pomo-orb::before {
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)) !important;
    border-color: rgba(255,255,255,0.09) !important;
}

.wdg-pomo-phase {
    background: transparent !important;
    color: var(--wdg-accent) !important;
    padding: 0 !important;
    font-size: 0.50rem !important;
    letter-spacing: 0.045em !important;
}

.wdg-pomo-time {
    color: var(--ipad-text) !important;
    text-shadow: none !important;
}

/* Botões Pomodoro — degrade laranja→roxo */
.wdg-pomo-setting-btn {
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed) !important;
    border: 1px solid rgba(249, 115, 22, 0.20) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18) !important;
}

.wdg-pomo-btn {
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed) !important;
    border: 1px solid rgba(249, 115, 22, 0.20) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18) !important;
}

.wdg-pomo-float-btn {
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed) !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.24) !important;
}

.wdg-pomo-setting-btn:hover {
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #8b5cf6) !important;
    border-color: rgba(249, 115, 22, 0.40) !important;
}

.wdg-pomo-btn:hover {
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #8b5cf6) !important;
    border-color: rgba(249, 115, 22, 0.40) !important;
}

.wdg-pomo-float-btn:hover {
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #8b5cf6) !important;
    border-color: rgba(255,255,255,0.50) !important;
}

.wdg-pomo-btn.start {
    border-color: rgba(249, 115, 22, 0.34) !important;
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.28) !important;
}

.wdg-pomo-btn.pause {
    border-color: rgba(245, 158, 11, 0.34) !important;
}

.wdg-pomo-btn.reset {
    border-color: var(--wdg-btn-border) !important;
}

.wdg-pomo-btn svg,
.wdg-pomo-float-btn svg,
.wdg-pomo-setting-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.wdg-pomo-btn.start svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.wdg-pomo-btn.reset svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* Botões de + e - ficam com cara de controle, não de CTA roxo */
.wdg-pomo-settings {
    background: rgba(148, 163, 184, 0.10) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

.wdg-pomo-setting-val {
    color: var(--ipad-text) !important;
    opacity: 0.86 !important;
}

/* Empty states e botão meta: remover roxo pesado */
.wdg-temas-empty,
.wdg-goal-empty {
    background: rgba(15, 23, 42, 0.035) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.dark-mode .wdg-temas-empty,
body.dark-mode .wdg-goal-empty {
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
}

.wdg-temas-empty-icon,
.wdg-goal-empty-icon {
    background: rgba(37, 99, 235, 0.10) !important;
}

.wdg-goal-empty-btn {
    padding: 7px 10px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ea580c, #c2410c 40%, #7c3aed) !important;
    border: 1px solid rgba(249, 115, 22, 0.20) !important;
    color: white !important;
    font-weight: 800 !important;
}

body.dark-mode .wdg-goal-empty-btn {
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #8b5cf6) !important;
    border-color: rgba(249, 115, 22, 0.30) !important;
}

.wdg-goal-empty-btn:hover {
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #8b5cf6) !important;
    color: white !important;
    border-color: rgba(249, 115, 22, 0.40) !important;
}

/* Tipografia dos textos internos */
.wdg-temas-empty-text,
.wdg-goal-empty-text,
.wdg-pomo-cycle-label,
.wdg-weekly-hero-note,
.wdg-goal-status {
    font-weight: 550 !important;
    letter-spacing: -0.01em !important;
}

.wdg-temas-name,
.wdg-weekly-stat-val,
.wdg-goal-count,
.wdg-weekly-hero-value {
    letter-spacing: -0.035em !important;
}

/* PDF grid */
#pdf-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.pdf-item-link {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
    border: none;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s cubic-bezier(0.2,0.8,0.2,1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pdf-item-link:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

body.dark-mode .pdf-item-link {
    background: #1c2128;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.dark-mode .pdf-item-link:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.pdf-item-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdf-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dark-mode .pdf-item-thumb {
    background: rgba(255, 255, 255, 0.06);
}

.pdf-item-info {
    padding: 12px 14px 14px;
}

.pdf-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    color: var(--ipad-text);
}

.pdf-item-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Synapses Fast ────────────────────────────────────────── */
.syn-container { max-width: 720px; margin: 0 auto; }

.syn-logo { margin-bottom: 16px; }

.syn-title { font-size: 2.6rem; font-weight: 800; color: #1e293b; margin: 0 0 10px; letter-spacing: -0.03em; }

.syn-desc { font-size: 1.15rem; color: #1e293b; margin: 0 0 32px; line-height: 1.5; }

.syn-start-info { margin-bottom: 36px; }

.syn-qtd { font-size: 1rem; color: #1e293b; margin-bottom: 18px; font-weight: 600; }

.syn-base-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.syn-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; color: #1e293b; }

.syn-dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }

.syn-btn-start {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; border: none; border-radius: 12px;
    background: #2dd4bf;
    color: #0f172a; font-size: 1rem; font-weight: 800; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 8px 24px rgba(45,212,191,0.3);
}
.syn-btn-start:hover { background: #14b8a6; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45,212,191,0.4); }

.syn-btn-voltar {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border: none; border-radius: 999px;
    background: #2dd4bf; color: #0f172a;
    font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.syn-btn-voltar:hover { background: #14b8a6; }

/* Game screen */
.syn-game-container.page-container { max-width: 680px; padding: 6px 16px 0 !important; margin: 0 auto; }

.syn-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding: 0 4px; }
.syn-topbar-left { display: flex; align-items: center; gap: 12px; }

.syn-timer { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: #1e293b; font-variant-numeric: tabular-nums; }
.syn-timer svg { color: #3b82f6; }

.syn-lives { display: flex; gap: 4px; }

.syn-instrucao { font-size: 1.1rem; color: #1e293b; text-align: center; margin: 0 0 8px; line-height: 1.4; font-weight: 500; }

.syn-legend { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.syn-legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.95rem; font-weight: 600; color: #1e293b; }
.syn-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.syn-solved-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; min-height: 24px; }

.syn-solved-tag { font-size: 0.72rem; font-weight: 700; color: #10b981; background: rgba(16,185,129,0.1); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(16,185,129,0.2); }

.syn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; max-width: 540px; margin-left: auto; margin-right: auto; }

.syn-card {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 10px 10px; border-radius: 14px;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(148,163,184,0.3);
    cursor: pointer; transition: all 0.2s;
    width: 115px; height: 115px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.syn-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.syn-card-selected {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.08);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}


.syn-card-disabled { opacity: 0.25; pointer-events: none; }

.syn-card-dot { position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

.syn-card-text { font-size: 0.72rem; font-weight: 600; color: #1e293b; line-height: 1.3; text-align: center; }

.syn-footer { display: flex; justify-content: center; padding: 0 0 12px; }

.syn-btn-confirm {
    width: 150px; padding: 12px 0; border: none; border-radius: 12px;
    background: #2dd4bf;
    color: #0f172a; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em;
    cursor: pointer; transition: all 0.2s;
}
.syn-btn-confirm:hover { background: #14b8a6; }

/* Toast */
.syn-toast {
    position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-20px);
    padding: 14px 32px; border-radius: 12px;
    font-size: 1rem; font-weight: 800; color: white;
    opacity: 0; transition: all 0.3s ease; z-index: 9999;
    pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.syn-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.syn-toast-success { background: #10b981; }
.syn-toast-error { background: #ef4444; }

/* Result screen */
.syn-result-icon { font-size: 3.5rem; margin-bottom: 8px; }
.syn-result-title { font-size: 1.6rem; font-weight: 800; color: #1e293b; margin: 0 0 6px; }
.syn-result-sub { font-size: 0.9rem; color: #94a3b8; margin: 0 0 20px; }

.syn-stars { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }

.syn-result-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.syn-stat { display: flex; flex-direction: column; align-items: center; }
.syn-stat-val { font-size: 1.6rem; font-weight: 800; color: #1e293b; }
.syn-stat-lbl { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }

.syn-solved-list { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 0 auto 24px; }
.syn-solved-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(16,185,129,0.07);
    font-size: 0.82rem; font-weight: 600; color: #1e293b;
}
.syn-solved-fail { background: rgba(239,68,68,0.07); }
.syn-solved-icon { font-size: 1rem; font-weight: 800; width: 20px; text-align: center; color: #10b981; }
.syn-solved-fail .syn-solved-icon { color: #ef4444; }

/* ── Rede Neural: force light mode ────────────────────── */
#view-synapses { background: url(/assets/backgrouds/backgroudRN.png) center/cover no-repeat !important; color: #1e293b !important; }
#view-estacao-select { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
#view-synapses .syn-card { background: rgba(255,255,255,0.95) !important; border-color: rgba(148,163,184,0.3) !important; }
#view-synapses .syn-card-selected { background: rgba(59,130,246,0.08) !important; border-color: #3b82f6 !important; }
#view-synapses .syn-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important; }
#view-synapses .syn-card-selected:hover { box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important; }

/* Responsivo */
@media (max-width:700px) {
    .syn-grid { grid-template-columns: repeat(2, 1fr); }
    .syn-card-text { font-size: 0.7rem; }
    .syn-title { font-size: 1.5rem; }
}
@media (max-width:420px) {
    .syn-grid { gap: 6px; }
    .syn-card { padding: 20px 8px 8px; min-height: 80px; }
    .syn-card-text { font-size: 0.62rem; }
}

/* ──────────────────────────────────────────────
   FULL-PAGE: TEMAS QUE PRECISAM DE ATENÇÃO
   ────────────────────────────────────────────── */

.temas-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.temas-stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(8px);
}

.temas-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.temas-icon-error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.temas-icon-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.temas-icon-info {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.temas-stat-value {
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--ipad-text);
    line-height: 1.1;
}

.temas-stat-label {
    font-size: 0.75rem;
    color: var(--ipad-text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.temas-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.temas-filter-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--ipad-text);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.temas-filter-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.temas-filter-btn.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.temas-list-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.temas-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--panel-bg);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.temas-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

body.dark-mode .temas-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.temas-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.temas-item-icon-critico {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.temas-item-icon-revisar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.temas-item-icon-leve {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.temas-item-icon svg {
    width: 20px;
    height: 20px;
}

.temas-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.temas-item-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ipad-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.temas-item-sub {
    font-size: 0.72rem;
    color: var(--ipad-text-muted);
    font-weight: 600;
}

.temas-item-bar-wrap {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.temas-item-bar {
    height: 100%;
    border-radius: inherit;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.temas-item-pct {
    font-size: 0.85rem;
    font-weight: 850;
    min-width: 44px;
    text-align: right;
}

.temas-item-action {
    color: var(--ipad-text-muted);
}

.temas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    gap: 12px;
}

.temas-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
}

.temas-empty-icon svg {
    width: 28px;
    height: 28px;
}

.temas-empty-text {
    color: var(--ipad-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .temas-summary {
        grid-template-columns: 1fr;
    }
}
