﻿:root {
    --ta-brand: var(--bs-primary);
}

body {
    font-family: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-feature-settings: "cv11", "ss01";
}

/* ---------- Koyu kenar menüsü (Sneat değişkenleri) ---------- */
.layout-menu {
    --bs-menu-bg: #232b3e;
    --bs-menu-bg-rgb: 35, 43, 62;
    --bs-menu-color: #c4cad8;
    --bs-menu-color-rgb: 196, 202, 216;
    --bs-menu-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-menu-hover-color: #fff;
    --bs-menu-active-bg: rgba(105, 108, 255, 0.22);
    --bs-menu-active-color: #b9bbff;
    --bs-menu-sub-active-bg: rgba(105, 108, 255, 0.16);
    --bs-menu-sub-active-color: #cdceff;
    --bs-menu-active-toggle-bg: rgba(255, 255, 255, 0.05);
    --bs-menu-divider-color: rgba(255, 255, 255, 0.08);
}

.layout-menu .app-brand-link,
.layout-menu .menu-header-text {
    color: #fff;
}

.layout-menu .app-brand .app-brand-text {
    color: #fff;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.layout-menu .app-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.layout-menu .menu-header .menu-header-text {
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.08em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ta-brand);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-mark-lg {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1rem;
}

.app-brand-logo .brand-mark {
    margin-top: -2px;
}

/* ---------- Sayfa başlığı ---------- */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.page-head h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.page-head .alt {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

/* ---------- Kart ve tablo sıkılaştırma ---------- */
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.4rem;
}

.avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--ta-brand);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.num {
    font-variant-numeric: tabular-nums;
}

.table-compact > :not(caption) > * > * {
    padding: 0.5rem 0.7rem;
}

.table thead th {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: var(--bs-secondary-color);
    font-weight: 600;
    white-space: nowrap;
}

.card-header {
    padding: 0.9rem 1rem;
    background: transparent;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.form-label {
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-text {
    font-size: 0.78rem;
}

.empty {
    padding: 1.75rem 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.progress {
    height: 6px;
}

.progress-bar {
    border-radius: 6px;
}

.table-inactive {
    opacity: 0.55;
}

.text-small {
    font-size: 0.82rem;
}

.net-preview {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--bs-primary-bg-subtle);
}

/* ---------- Giriş ekranı ---------- */
.authentication-basic {
    background:
        radial-gradient(1100px 520px at 8% -10%, rgba(105, 108, 255, 0.12), transparent 60%),
        radial-gradient(900px 480px at 95% 110%, rgba(105, 108, 255, 0.09), transparent 55%),
        var(--bs-body-bg);
    border-radius: 1rem;
}

.authentication-inner {
    max-width: 430px;
    margin: 0 auto;
}

/* ---------- Etiket tasarım ekranı ---------- */
.label-canvas-wrap {
    background: repeating-conic-gradient(#f1f2f4 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: grid;
    place-items: center;
    overflow: auto;
}

#labelCanvas {
    background: #fff;
    box-shadow: 0 6px 24px rgba(34, 48, 62, 0.12);
    cursor: crosshair;
    border-radius: 2px;
    max-width: 100%;
}

.element-list .list-group-item {
    cursor: pointer;
}

.element-list .list-group-item.active {
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
    color: var(--bs-heading-color);
}

/* Baskı sayfası: yalnız etiket görünür */
body.print-body {
    background: #f5f5f9;
    margin: 0;
}

.print-sheet {
    display: flex;
    flex-wrap: wrap;
    gap: 4mm;
    padding: 8mm;
}

.print-label {
    width: var(--label-w);
    height: var(--label-h);
    background: #fff;
    overflow: hidden;
    page-break-inside: avoid;
    position: relative;
    box-sizing: border-box;
}

.print-actions {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
}

@page {
    margin: 6mm;
}

@media print {
    body.print-body {
        background: #fff;
    }

    .print-actions,
    .no-print {
        display: none !important;
    }

    .print-sheet {
        padding: 0;
        gap: 2mm;
    }

    .print-label {
        box-shadow: none;
    }
}

@media (max-width: 575.98px) {
    .page-head h1 {
        font-size: 1.25rem;
    }
}
