/* HALDIZ — app topbar + 6 karo hub menü */
.app-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #070b18 0%, #121933 55%, #182447 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.app-topbar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--hk-navbar-height, 56px);
    width: 100%;
    max-width: var(--hk-content-max, 1320px);
    margin-left: auto;
    margin-right: auto;
    padding: 0.45rem var(--hk-content-gutter, 1rem);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.app-brand:hover { color: #fff; }

.app-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    flex-shrink: 0;
}

.app-brand-text {
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
}

/* Navbar marka — KOLAY ERP */
.app-brand-text--kolay {
    max-width: none;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    animation: none;
    filter: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.app-brand:hover .app-brand-text--kolay {
    color: #fff;
    filter: none;
}

.app-topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.app-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-topbar-pill:hover,
.app-topbar-pill:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.app-topbar-pill.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(96, 165, 250, 0.45);
}

.app-topbar-pill-menu {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
    font-weight: 600;
}

.app-topbar-pill-menu:hover,
.app-topbar-pill-menu:focus {
    background: rgba(59, 130, 246, 0.32);
}

.app-topbar-pill-etkinlik {
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(167, 139, 250, 0.42);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.08) inset;
}

.app-topbar-pill-etkinlik i {
    font-size: 0.95rem;
}

.app-topbar-pill-etkinlik:hover,
.app-topbar-pill-etkinlik:focus {
    color: #fff;
    background: rgba(124, 58, 237, 0.38);
    border-color: rgba(196, 181, 253, 0.55);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.app-topbar-pill-etkinlik.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(109, 40, 217, 0.65));
    border-color: rgba(196, 181, 253, 0.65);
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.35);
}

.app-topbar-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
    overflow: visible;
}

.app-topbar-tools .dropdown {
    position: static;
}

.app-tool-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.app-tool-btn:hover,
.app-tool-btn:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.app-tool-account {
    width: auto;
    padding: 0 0.2rem 0 0.15rem;
}

.app-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.app-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.58rem;
    padding: 0.15em 0.4em;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    border: 2px solid #121933;
    line-height: 1;
}

.app-dropdown {
    min-width: 15rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    padding: 0.35rem;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    z-index: 1060;
}

.app-account-dropdown {
    min-width: 260px;
}

/* —— 6 karo hub drawer —— */
.app-menu-drawer {
    width: min(100vw, 440px);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
    z-index: 1055;
}

.app-menu-drawer-head {
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #0b1224 0%, #152042 100%);
    color: #fff;
    border-bottom: none;
}

.app-menu-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.app-menu-drawer-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.app-menu-drawer-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.1rem;
}

.app-menu-drawer-head .btn-close {
    filter: invert(1);
    opacity: 0.75;
}

.app-menu-drawer-body {
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    overflow: hidden;
}

.app-menu-search-wrap {
    padding: 0.85rem 1rem 0.65rem;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.app-menu-search .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.app-menu-search .form-control {
    border-color: #e2e8f0;
    background: #f8fafc;
    font-size: 0.875rem;
}

.app-menu-search .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.app-menu-panels {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 1rem 1.25rem;
}

.app-menu-panel {
    display: none;
}

.app-menu-panel.is-active {
    display: block;
}

.app-menu-quick-label,
.app-menu-tiles-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.55rem;
}

.app-menu-quick {
    margin-bottom: 1rem;
}

.app-menu-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.app-menu-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #334155;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    min-height: 4.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.app-menu-quick-link i {
    font-size: 1.15rem;
    color: #2563eb;
}

.app-menu-quick-link:hover {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.app-menu-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.app-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem;
    min-height: 7.5rem;
    border: none;
    border-radius: 1rem;
    text-align: left;
    cursor: pointer;
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.app-menu-tile:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.app-menu-tile-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.15rem;
}

.app-menu-tile-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
}

.app-menu-tile-desc {
    font-size: 0.68rem;
    opacity: 0.85;
    line-height: 1.35;
}

.app-menu-tile-blue {
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
}

.app-menu-tile-green {
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
}

.app-menu-tile-purple {
    background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
}

.app-menu-tile-orange {
    background: linear-gradient(145deg, #ea580c 0%, #c2410c 100%);
}

.app-menu-tile-teal {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
}

.app-menu-tile-slate {
    background: linear-gradient(145deg, #475569 0%, #334155 100%);
}

.app-menu-tile.is-hidden {
    display: none;
}

.app-menu-detail-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.app-menu-back:hover {
    background: #f8fafc;
    color: #2563eb;
}

.app-menu-detail-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    min-width: 0;
}

.app-menu-detail-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-menu-detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.app-menu-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.app-menu-section.is-hidden {
    display: none;
}

.app-menu-section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.45rem;
    padding: 0.15rem 0.35rem;
    text-decoration: none !important;
}

.app-menu-section-title i {
    font-size: 0.8rem;
    color: #94a3b8;
}

a.app-menu-section-title:hover {
    color: #2563eb;
}

.app-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.app-menu-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-menu-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.65rem;
    border-radius: 0.65rem;
    color: #1e293b;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.app-menu-link i {
    width: 1.35rem;
    flex-shrink: 0;
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    line-height: 1;
}

.app-menu-link:hover,
.app-menu-link.active {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}

.app-menu-link:hover i,
.app-menu-link.active i {
    color: #2563eb;
}

.app-menu-link.is-hidden {
    display: none;
}

.app-menu-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-menu-divider {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0.45rem 0.5rem 0.15rem;
    list-style: none;
}

.app-menu-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .app-brand-text:not(.app-brand-text--kolay) {
        max-width: 6.5rem;
    }

    .app-brand-text--kolay {
        max-width: none;
        font-size: 0.88rem;
        letter-spacing: 0.08em;
    }

    .app-menu-drawer {
        width: min(100%, 100vw);
        max-width: 100%;
    }

    .app-menu-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-menu-tiles {
        grid-template-columns: 1fr;
    }

    .app-menu-tile {
        min-height: 5.5rem;
        flex-direction: row;
        align-items: center;
    }

    .app-menu-tile-desc {
        display: none;
    }
}
