:root {
    --saglik-primary: #2563eb;
    --saglik-primary-2: #06b6d4;
    --saglik-purple: #5b21ff;
    --saglik-bg: #eefbff;
    --saglik-card: #ffffff;
    --saglik-text: #0f172a;
    --saglik-muted: #64748b;
    --saglik-border: #dbeafe;
    --saglik-soft: #f8fdff;
    --saglik-shadow: 0 12px 32px rgba(15, 23, 42, .075);
    --saglik-shadow-soft: 0 8px 22px rgba(14, 165, 233, .12);
}

.saglik-page.dashboard-clean {
    min-height: 100vh;
    padding: 22px;
    color: var(--saglik-text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, .20), transparent 34%),
        linear-gradient(135deg, #edfaff 0%, #f7feff 52%, #ffffff 100%);
}

.saglik-hero-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(219, 234, 254, .9);
    border-radius: 22px;
    box-shadow: var(--saglik-shadow);
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-size: 34px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eefbff, #ffffff);
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.saglik-hero-clean h1 {
    margin: 0;
    color: var(--saglik-purple);
    font-weight: 800;
    letter-spacing: -.03em;
}

.saglik-hero-clean p {
    margin: 4px 0 0;
    color: var(--saglik-purple);
    opacity: .86;
}

.hero-actions,
.filter-bar,
.overview-legend,
.summary-toggle-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-btn,
.summary-toggle-btn,
.filter-chip {
    border: 1px solid var(--saglik-border);
    background: #fff;
    color: var(--saglik-purple);
    padding: 9px 13px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .045);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.hero-btn:hover,
.summary-toggle-btn:hover,
.filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--saglik-shadow-soft);
}

.hero-btn-light {
    color: #334155;
}

.summary-toggle-bar {
    margin-bottom: 12px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(219, 234, 254, .95);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.metric-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--saglik-purple);
    font-size: 12px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: 2px;
    color: var(--saglik-purple);
    font-size: 20px;
    line-height: 1.15;
}

.metric-card.warning .metric-icon { background: #fff7ed; }
.metric-card.danger .metric-icon { background: #fef2f2; }
.metric-card.risk .metric-icon { background: #f0fdf4; }

.filter-bar {
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(219, 234, 254, .9);
    border-radius: 18px;
}

.filter-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--saglik-primary), var(--saglik-primary-2));
    border-color: transparent;
}

.overview-legend {
    margin: 0 0 14px;
    color: var(--saglik-purple);
    font-size: 13px;
}

.overview-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-chip {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
}

.legend-chip--healthy { background: #fffef7; border-color: #38bdf8; }
.legend-chip--filling { background: #dbeafe; border-color: #2563eb; }
.legend-chip--canal { background: #ede9fe; border-color: #7c3aed; }
.legend-chip--decay { background: #fef3c7; border-color: #92400e; }
.legend-chip--implant { background: #ccfbf1; border-color: #0f766e; }
.legend-chip--pain { background: #fee2e2; border-color: #dc2626; }
.legend-chip--control { background: #fff7ed; border-color: #f59e0b; }

.single-tooth-strip-section,
.main-jaw-dashboard,
.dashboard-lower-grid,
.quadrant-grid {
    margin-bottom: 16px;
}

.single-strip-header,
.dashboard-section-title,
.jaw-card__head,
.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.single-strip-header h2,
.dashboard-section-title h2,
.jaw-card h3,
.panel-card h3 {
    margin: 0;
    color: var(--saglik-purple);
    font-weight: 800;
    letter-spacing: -.02em;
}

.single-strip-header p,
.dashboard-section-title p,
.jaw-card__head span,
.region-mini-info small {
    margin: 4px 0 0;
    color: var(--saglik-purple);
    opacity: .82;
}

.single-strip-badge,
.region-mini-info b {
    color: var(--saglik-purple);
    font-weight: 800;
}

.jaw-card,
.panel-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(219, 234, 254, .95);
    border-radius: 22px;
    box-shadow: var(--saglik-shadow);
}

.jaw-card {
    padding: 16px;
    margin-bottom: 16px;
}

.region-mini-info {
    display: grid;
    text-align: right;
    gap: 2px;
}

.tooth-grid {
    display: grid;
    gap: 10px;
    align-items: stretch;
}

.tooth-grid--32,
.jaw-card--single-strip .tooth-grid {
    grid-template-columns: repeat(32, minmax(82px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
}

.tooth-grid--16,
.jaw-card--full .tooth-grid {
    grid-template-columns: repeat(16, minmax(84px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
}

.tooth-grid--8,
.jaw-card--small .tooth-grid {
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.tooth-card {
    --tooth-color: #38bdf8;
    position: relative;
    min-height: 150px;
    width: 100%;
    border: 1px solid #dbeafe;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,249,255,.94));
    border-radius: 16px;
    padding: 8px 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .04);
}

.tooth-card:hover,
.tooth-card.is-active {
    transform: translateY(-2px);
    border-color: var(--tooth-color);
    box-shadow: 0 12px 28px rgba(14, 165, 233, .20);
}

.tooth-card.is-filter-hidden {
    display: none !important;
}

.tooth-card__topline {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
}

.order-badge {
    font-weight: 900;
    color: #0f172a;
}

.status-badge {
    max-width: 72px;
    color: #334155;
    font-weight: 700;
    line-height: 1.15;
}

.tooth-shell {
    position: relative;
    width: 68px;
    height: 76px;
    margin: 0 auto 4px;
    display: grid;
    place-items: center;
}

.tooth-svg {
    width: 68px;
    height: 76px;
    display: block;
    overflow: visible;
}

.tooth-base {
    fill: #fffdf5;
    stroke: var(--tooth-color, #38bdf8);
    stroke-width: 3.5;
    filter: drop-shadow(0 5px 6px rgba(15, 23, 42, .12));
    transition: fill .18s ease, stroke .18s ease, filter .18s ease;
}

.tooth-card:hover .tooth-base,
.tooth-card.is-active .tooth-base {
    filter: drop-shadow(0 8px 9px rgba(14, 165, 233, .25));
}

.tooth-fill-mark {
    fill: #2563eb;
    opacity: .88;
}

.tooth-root-line {
    fill: none;
    stroke: #7c3aed;
    stroke-width: 4;
    stroke-linecap: round;
}

.tooth-decay,
.tooth-decay-mini {
    fill: #92400e;
    opacity: .9;
}

.tooth-implant {
    fill: #0f766e;
    opacity: .9;
}

.tooth-implant-line {
    stroke: #ccfbf1;
    stroke-width: 2;
}

.tooth-card.is-filling,
.tooth-card.state-dolgu {
    --tooth-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.tooth-card.is-canal,
.tooth-card.state-kanal,
.tooth-card.state-kanal-agri {
    --tooth-color: #7c3aed;
    background: linear-gradient(180deg, #f5f3ff, #ffffff);
}

.tooth-card.is-decay,
.tooth-card.state-curuk,
.tooth-card.state-curuk-agri {
    --tooth-color: #92400e;
    background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.tooth-card.is-implant,
.tooth-card.state-implant,
.tooth-card.state-implant-agri {
    --tooth-color: #0f766e;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
}

.tooth-card.has-pain,
.tooth-card.state-agri,
.tooth-card.state-dolgu-agri,
.tooth-card.state-kanal-agri,
.tooth-card.state-curuk-agri,
.tooth-card.state-implant-agri {
    --tooth-color: #dc2626;
    background: linear-gradient(180deg, #fef2f2, #ffffff);
}

.tooth-card.needs-control {
    outline: 2px dashed #f59e0b;
    outline-offset: 2px;
}

.pulse {
    position: absolute;
    inset: 7px 1px 2px;
    border: 2px solid rgba(220, 38, 38, .75);
    border-radius: 999px;
    animation: saglikPulse 1.6s ease-out infinite;
    pointer-events: none;
}

.pulse-2 {
    animation-delay: .55s;
}

@keyframes saglikPulse {
    from { transform: scale(.78); opacity: .95; }
    to { transform: scale(1.22); opacity: 0; }
}

.tooth-card__fdi {
    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.15;
}

.tooth-card__name,
.tooth-card__meta {
    color: #334155;
    font-size: 11px;
    line-height: 1.25;
}

.tooth-card__meta {
    margin-top: 4px;
    display: grid;
    gap: 2px;
}

.tooth-card__meta em {
    color: #b45309;
    font-style: normal;
    font-weight: 800;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel-card {
    padding: 16px;
    margin-bottom: 16px;
}

.panel-title {
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.panel-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eff6ff;
}

.risk-score strong {
    display: block;
    color: var(--saglik-purple);
    font-size: 42px;
    line-height: 1;
}

.risk-score span {
    color: var(--saglik-muted);
    font-weight: 700;
}

.risk-progress {
    height: 10px;
    margin-top: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.risk-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
    border-radius: inherit;
}

.timeline-list {
    display: grid;
    gap: 9px;
}

.timeline-item {
    padding: 10px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.timeline-item strong,
.timeline-item span,
.timeline-item small {
    display: block;
}

.timeline-item strong { color: #0f172a; }
.timeline-item span { color: #475569; font-size: 12px; }
.timeline-item small { color: #64748b; }
.warning-line { border-color: #fed7aa; background: #fff7ed; }

.empty-state {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.dental-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .25);
}

.dental-modal .modal-header {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border-bottom: 1px solid #dbeafe;
}

.dental-modal .modal-title {
    color: var(--saglik-purple);
    font-weight: 900;
}

.saglik-dis-detay-panel .card {
    border-radius: 18px;
}

.saglik-dis-detay-panel .card-header {
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 1200px) {
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .saglik-page.dashboard-clean {
        padding: 14px;
    }

    .saglik-hero-clean,
    .single-strip-header,
    .dashboard-section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .quadrant-grid {
        grid-template-columns: 1fr;
    }

    .tooth-grid--16,
    .jaw-card--full .tooth-grid {
        grid-template-columns: repeat(16, minmax(82px, 1fr));
    }
}

@media print {
    .hero-actions,
    .filter-bar,
    .summary-toggle-bar,
    .dashboard-side-area,
    .modal,
    .btn,
    .no-print {
        display: none !important;
    }

    .saglik-page.dashboard-clean {
        background: #fff;
        padding: 0;
    }

    .jaw-card,
    .metric-card,
    .saglik-hero-clean {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
