/* Explain: App-specific layout utilities for navigation, grids, and login/field views. */
.nova-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(14, 15, 19, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(14, 15, 19, 0.55);
}

.nova-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.nova-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #0E0F13;
    font-size: 17px;
    box-shadow: 0 6px 18px rgba(198, 244, 50, 0.30);
}

.nova-brand-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nova-brand-text b { color: var(--primary-color); }

.nova-topbar-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 460px;
    margin-left: auto;
}

.nova-topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.nova-topbar-search .nova-input {
    padding-left: 38px;
    min-height: 42px;
}

.nova-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: var(--surface-2-color);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: none;
    z-index: 80;
}

.nova-search-results.is-open { display: block; }

.nova-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.nova-search-item:hover { background: var(--surface-3-color); }
.nova-search-item small { color: var(--text-muted); font-size: 12px; }

.nova-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nova-live {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 900px) {
    .nova-live { display: inline-flex; }
}

.nova-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(198, 244, 50, 0.55);
    animation: novaPulse 2s infinite;
}

@keyframes novaPulse {
    0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0.50); }
    70% { box-shadow: 0 0 0 10px rgba(198, 244, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0); }
}

.nova-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nova-user-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-3-color);
    border: 1px solid var(--border-strong);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
}

.nova-user-meta {
    display: none;
    flex-direction: column;
    line-height: 1.25;
}

@media (min-width: 720px) {
    .nova-user-meta { display: flex; }
}

.nova-user-meta b { font-size: 13.5px; }
.nova-user-meta small { color: var(--text-muted); font-size: 11.5px; }

.nova-shell {
    display: flex;
    align-items: stretch;
}

.nova-sidebar {
    flex: 0 0 268px;
    width: 268px;
    position: sticky;
    top: 63px;
    height: calc(100vh - 63px);
    overflow-y: auto;
    padding: 16px 12px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
}

.nova-sidebar-title {
    margin: 4px 8px 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.nova-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 3px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nova-nav-item:hover {
    background: var(--surface-2-color);
    color: var(--text-color);
}

.nova-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.nova-nav-item.is-active {
    background: linear-gradient(90deg, rgba(198, 244, 50, 0.14), rgba(198, 244, 50, 0.02));
    border-color: rgba(198, 244, 50, 0.30);
    color: var(--primary-color);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.nova-sidebar-foot {
    margin: 16px 8px 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
}

.nova-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 20px 60px;
}

.nova-main-narrow {
    max-width: 1040px;
    margin: 0 auto;
}

.nova-view { display: none; }
.nova-view.is-active { display: block; animation: novaFade 0.32s ease; }

@keyframes novaFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.nova-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.nova-page-title { font-size: 24px; }
.nova-page-sub { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }

.nova-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nova-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.nova-grid-2 { grid-template-columns: 1fr; }

@media (min-width: 700px) {
    .nova-grid-2 { grid-template-columns: 1fr 1fr; }
    .nova-grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .nova-grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nova-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1250px) {
    .nova-grid-kpi-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.nova-grid-kpi {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

.nova-grid-3 {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.nova-scrim {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(14, 15, 19, 0.55);
    display: none;
}

body.sidebar-open .nova-scrim { display: block; }

@media (max-width: 1023px) {
    .nova-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        z-index: 70;
        transform: translateX(-110%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow);
    }

    body.sidebar-open .nova-sidebar { transform: translateX(0); }
}

@media (min-width: 1024px) {
    #sidebarToggle { display: none; }
}

.nova-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 22px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12.5px;
}

/* --- Giriş ekranı --- */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 18px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 30px 28px;
    background:
        radial-gradient(520px 220px at 50% -10%, rgba(198, 244, 50, 0.10), transparent 70%),
        var(--surface-color);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.login-logo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #0E0F13;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(198, 244, 50, 0.28);
}

.login-title { font-size: 22px; }
.login-sub { margin: 8px 0 22px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.login-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    margin-bottom: 22px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.login-tab {
    padding: 10px 6px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-tab.is-active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #0E0F13;
    box-shadow: 0 6px 16px rgba(198, 244, 50, 0.24);
}

.login-form { display: none; }
.login-form.is-active { display: block; }

.login-msg {
    margin: 14px 0 0;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
}

.login-msg.is-error { background: var(--danger-soft); color: var(--danger-color); }
.login-msg.is-ok { background: var(--primary-soft); color: var(--primary-color); }

.login-hint {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.8;
}

/* --- Saha (tablet) ekranı --- */
.saha-field { margin-bottom: 18px; }

.saha-map {
    width: 100%;
    height: 320px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface-2-color);
}

.staff-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface-color);
}

.staff-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-3-color);
    border: 1px solid var(--border-strong);
    color: var(--primary-color);
    font-weight: 800;
}

.staff-meta { display: flex; flex-direction: column; line-height: 1.3; }
.staff-meta b { font-size: 14.5px; }
.staff-meta small { color: var(--text-muted); font-size: 12px; }

.saha-appbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(420px 160px at 0% 0%, rgba(198, 244, 50, 0.10), transparent 70%),
        var(--surface-color);
    box-shadow: var(--shadow-sm);
}

/* --- Üst bar saat ve uyarı merkezi --- */
.nova-clock {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-2-color);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1100px) {
    .nova-clock { display: inline-flex; }
}

.nova-notify { position: relative; }

.nova-notify-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--danger-color);
    color: #0E0F13;
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 0 0 2px #0E0F13;
}

.nova-notify-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(92vw, 384px);
    max-height: 430px;
    overflow-y: auto;
    background: var(--surface-2-color);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: none;
    z-index: 92;
}

.nova-notify-panel.is-open {
    display: block;
    animation: novaFade 0.2s ease;
}

.nova-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 700;
}

.nova-notify-item {
    display: flex;
    gap: 11px;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nova-notify-item:last-child { border-bottom: none; }
.nova-notify-item:hover { background: var(--surface-3-color); }
.nova-notify-item b { display: block; font-size: 13.5px; }
.nova-notify-item small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }

.nova-notify-ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.nova-notify-empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
}

.nova-notify-empty i { font-size: 24px; opacity: 0.5; }
.nova-notify-empty p { margin: 10px 0 0; }

/* --- Gelişmiş arama sonuçları --- */
.nova-search-item-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.nova-search-item-main > i {
    width: 16px;
    color: var(--primary-color);
    text-align: center;
    font-size: 13px;
}

.nova-search-item-main span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nova-search-item b { font-size: 13.5px; font-weight: 700; }

.nova-search-go {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nova-search-item:hover .nova-search-go,
.nova-search-item.is-hilite .nova-search-go { opacity: 1; }

.nova-search-item.is-hilite { background: var(--surface-3-color); }

.nova-search-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    color: var(--text-muted);
    font-size: 13.5px;
}