/* ===== Modern Icon+Title Button (2 sütun) ===== */
.qb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr)); /* her satırda 2 link */
    gap: .6rem;
}

/* Buton */
.qb-btn {
    --radius: 14px;
    --accent: #6366f1; /* tema rengi sınıflarla değişir */
    --stroke: #e5e7eb;
    --bg: #ffffff;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .8rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--stroke);
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(2,6,23,.06);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Sol ikon kapsülü */
.qb-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 12%, #f1f5f9);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, #e2e8f0);
    box-shadow: inset 0 6px 12px rgba(2,6,23,.06);
    flex: 0 0 auto;
}

    .qb-ico i {
        font-size: 1.15rem;
        color: #0b1220
    }

/* Başlık */
.qb-title {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover / aktif */
.qb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(2,6,23,.10);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--stroke));
}

    .qb-btn:hover .qb-ico {
        transform: translateX(1px) scale(1.03);
        transition: transform .16s ease
    }

    .qb-btn:hover .qb-title {
        color: color-mix(in srgb, var(--accent) 40%, #0f172a)
    }

/* Klavye odağı */
.qb-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, #60a5fa);
}

/* Aktif sayfa vurgusu (server-side class: is-active) */
.qb-btn.is-active {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, #93c5fd) inset, 0 8px 20px rgba(2,6,23,.08);
}

/* Renk temaları */
.qb-blue {
    --accent: #3b82f6
}

.qb-purple {
    --accent: #8b5cf6
}

.qb-pink {
    --accent: #ec4899
}

.qb-green {
    --accent: #22c55e
}

.qb-amber {
    --accent: #f59e0b
}

.qb-indigo {
    --accent: #6366f1
}

.qb-cyan {
    --accent: #06b6d4
}

.qb-teal {
    --accent: #14b8a6
}

/* Sidebar kart görünümü */
.sidebar-block .card {
    background: #ffffff;
    border-color: #e5e7eb
}

.sidebar-block .card-header {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb
}
/* ===== Compact 4x Grid (ikon + başlık, minimal) ===== */

/* 4 sütun dizilim */
.sidebar-block .qb-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: .4rem !important;
}

/* Düğme: ekstra küçük padding ve dikey yerleşim */
.sidebar-block .qb-btn {
    --radius: 10px;
    --stroke: #e5e7eb;
    --bg: #fff;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: .3rem !important;
    padding: .4rem .3rem !important; /* en asgari padding */
    min-height: 58px; /* çok kısa kart */
    border-radius: var(--radius) !important;
    background: var(--bg) !important;
    border: 1px solid var(--stroke) !important;
    box-shadow: none !important; /* sade */
    transform: none !important; /* animasyon min */
}

/* İkon: küçük kapsül */
.sidebar-block .qb-ico {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    display: grid;
    place-items: center;
}

    .sidebar-block .qb-ico i {
        font-size: .95rem !important;
        color: #0b1220
    }

/* Başlık: tek satır, çok küçük */
.sidebar-block .qb-title {
    font-size: .78rem !important;
    font-weight: 600 !important;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Hover/aktif: sadece ince vurgu (sade tut) */
.sidebar-block .qb-btn:hover {
    border-color: color-mix(in srgb, var(--accent, #9ca3af) 38%, #e5e7eb) !important;
    background: #fff !important;
}

.sidebar-block .qb-btn.is-active {
    border-color: color-mix(in srgb, var(--accent, #6366f1) 45%, #e5e7eb) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #6366f1) 18%, #ffffff) inset !important;
}

/* Renk temaları (opsiyonel; sadece sınır/hover vurgusu için) */
.qb-blue {
    --accent: #3b82f6
}

.qb-purple {
    --accent: #8b5cf6
}

.qb-pink {
    --accent: #ec4899
}

.qb-green {
    --accent: #22c55e
}

.qb-amber {
    --accent: #f59e0b
}

.qb-indigo {
    --accent: #6366f1
}

.qb-cyan {
    --accent: #06b6d4
}

.qb-teal {
    --accent: #14b8a6
}