html, body {
    font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Section'lar arası yumuşak kaydırma (landing anchor linkleri) */
html {
    scroll-behavior: smooth;
}

/* --- Scroll reveal (progressive enhancement) ---
   reveal.js, JS varsa body'ye .reveal-on ekler ve görünen .lp-reveal'lara .in verir.
   JS yoksa .reveal-on hiç eklenmez → içerik tam görünür kalır (içerik kaybı olmaz). */
body.reveal-on .lp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
}

    body.reveal-on .lp-reveal.in {
        opacity: 1;
        transform: none;
    }

/* Aynı ızgaradaki kartlara hafif kademeli gecikme (cascade) */
body.reveal-on .lp-grid .lp-reveal:nth-child(2) { transition-delay: .06s; }
body.reveal-on .lp-grid .lp-reveal:nth-child(3) { transition-delay: .12s; }
body.reveal-on .lp-grid .lp-reveal:nth-child(4) { transition-delay: .18s; }
body.reveal-on .lp-grid .lp-reveal:nth-child(5) { transition-delay: .12s; }
body.reveal-on .lp-grid .lp-reveal:nth-child(6) { transition-delay: .18s; }
body.reveal-on .lp-grid .lp-reveal:nth-child(7) { transition-delay: .24s; }
body.reveal-on .lp-grid .lp-reveal:nth-child(8) { transition-delay: .30s; }
body.reveal-on .lp-steps .lp-reveal:nth-child(2) { transition-delay: .1s; }
body.reveal-on .lp-steps .lp-reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    body.reveal-on .lp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Æther yardımcı sınıfları --- */

/* Soluk metin (Color.Secondary'nin marka rengiyle çakışmaması için tercih edilir) */
.aether-muted {
    color: var(--mud-palette-text-secondary) !important;
}

/* Tıklanabilir özet kartlar (Devices/Customers stat satırı) */
.stat-card {
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
    /* 0.41.10: Aynı satırdaki kartların yüksekliği eşit kalsın (kartın içinde
       bazılarında alt-satır multi-source breakdown olunca shrink olmasın). */
    height: 100%;
}
.stat-card:hover {
    border-color: var(--mud-palette-primary);
}
.stat-card--active {
    border-color: var(--mud-palette-primary);
    background-color: var(--mud-palette-primary-hover);
}

/* Detay alan etiketi (KÜÇÜK, BÜYÜK HARF, soluk) */
.aether-label {
    color: var(--mud-palette-text-secondary);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    line-height: 1.4;
}

.aether-value {
    font-size: .95rem;
    font-weight: 500;
    word-break: break-word;
}

/* Kartlara ince hover yükselmesi */
.aether-hover {
    transition: box-shadow .15s ease;
}
.aether-hover:hover {
    box-shadow: var(--mud-elevation-6);
}

/* Sekme içeriğine üst boşluk */
.mud-tabs-panels {
    padding-top: 14px;
}

/* Müşteri detay: çok sayıda sekme (9+) dar ekrana daha iyi sığsın — kompakt sekmeler.
   MudBlazor .mud-tab'a width:100% verir → şişer; width:auto ile içeriğe göre daralt. */
.aether-detail-tabs .mud-tab {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 18px;
    font-size: 0.82rem;
    letter-spacing: .2px;
}
.aether-detail-tabs .mud-tab .mud-icon-root {
    font-size: 1.15rem;
    margin-right: 7px;
}
@media (max-width: 1100px) {
    .aether-detail-tabs .mud-tab { padding: 0 12px; }
    .aether-detail-tabs .mud-tab .mud-icon-root { margin-right: 5px; }
}

/* Tabloda satır tıklanabilirse */
.cursor-pointer {
    cursor: pointer;
}

/* Topoloji editörü tuvali */
.topology-canvas {
    width: 100%;
    height: 520px;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background:
        radial-gradient(var(--mud-palette-lines-default) 1px, transparent 1px) 0 0 / 22px 22px;
    background-color: var(--mud-palette-surface);
}

/* --- Blazor hata bildirimi --- */
#blazor-error-ui {
    background: #fff3f3;
    color: #b32121;
    border-top: 2px solid #e57373;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
    display: none;
    padding: .9rem 1.4rem;
    position: fixed;
    z-index: 2000;
}
    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: .75rem;
    }

/* --- Envanter görünümü --- */
.inventory-json {
    background: var(--mud-palette-background-grey);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .8rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow: auto;
    margin: 0;
}

/* Kurulu yazılım ızgarası (logo + ad + sürüm) */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 14px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}
.software-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
}
.software-item:hover {
    background: var(--mud-palette-action-default-hover);
}
.software-item img {
    flex: 0 0 auto;
    object-fit: contain;
}
.software-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.software-name {
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.software-ver {
    font-size: .72rem;
    color: var(--mud-palette-text-secondary);
}

/* --- Public destek sayfası (mobil) --- */
.support-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
}
.support-submit {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: var(--mud-palette-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.support-submit:hover {
    filter: brightness(1.08);
}

/* --- Uygulama kütüphanesi kartları --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
    max-height: 52vh;
    overflow: auto;
    padding: 2px;
}
.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.catalog-card:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: var(--mud-elevation-4);
    transform: translateY(-2px);
}
.catalog-card img {
    object-fit: contain;
}
.catalog-name {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.15;
}
.catalog-cat {
    font-size: .68rem;
    color: var(--mud-palette-text-secondary);
}

/* --- Çevrimiçi geçmişi (uptime) heatmap --- */
.uptime-grid {
    display: grid;
    grid-template-columns: 58px repeat(24, 1fr);
    gap: 3px;
    align-items: center;
    margin-bottom: 3px;
}
.uptime-daylabel {
    font-size: .72rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    text-align: right;
    padding-right: 6px;
}
.uptime-hourlabel {
    font-size: .62rem;
    color: var(--mud-palette-text-secondary);
    text-align: center;
}
.uptime-cell {
    height: 15px;
    border-radius: 3px;
    background: var(--mud-palette-action-disabled-background);
}
.uptime-cell.on {
    background: var(--mud-palette-success);
}
.uptime-cell.future {
    background: transparent;
    border: 1px dashed var(--mud-palette-lines-default);
    box-sizing: border-box;
}
.uptime-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: var(--mud-palette-text-secondary);
}
.uptime-legend .swatch {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    display: inline-block;
}

/* --- Boş-durum (marka illüstrasyonu) --- */
.aether-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 16px;
    text-align: center;
}
.aether-empty img {
    width: 116px;
    height: auto;
    opacity: .92;
}
.aether-empty-text {
    color: var(--mud-palette-text-secondary);
    font-size: .95rem;
}

/* --- Sayfa başlık şeridi (marka banner) --- */
.aether-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 22px 24px;
    min-height: 92px;
    display: flex;
    align-items: center;
    border: 1px solid var(--mud-palette-lines-default);
    background:
        linear-gradient(90deg, rgba(18, 19, 25, .94) 0%, rgba(18, 19, 25, .6) 55%, rgba(18, 19, 25, .35) 100%),
        url('/img/header-banner.jpg') right center / cover no-repeat;
}
.aether-banner .aether-banner-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}
.aether-banner .aether-banner-sub {
    color: #c9c9d4;
}
