:root {
    --sidebar-w: 220px;
    --sidebar-bg: #16202d;
    --sidebar-fg: #93a3b5;
    --sidebar-fg-active: #ffffff;
}

html, body {
    height: 100%;
}

body {
    font-size: .925rem;
}

/* --- yerlesim --- */

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--sidebar-bg);
    padding: 1rem .75rem;
}

.content {
    flex: 1 1 auto;
    min-width: 0;          /* genis tablolar sidebar'i itmesin */
    background: #f5f7fa;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
}

/* --- marka --- */

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem 1.25rem;
    text-decoration: none;
}

.brand-mark, .login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .5px;
}

.login-mark {
    width: 52px;
    height: 52px;
    font-size: .9rem;
    margin: 0 auto;
}

.brand-text {
    color: #fff;
    font-weight: 600;
}

/* --- menu --- */

.sidebar .nav-link {
    color: var(--sidebar-fg);
    border-radius: 7px;
    padding: .5rem .75rem;
    margin-bottom: .15rem;
}

.sidebar .nav-link:hover {
    color: var(--sidebar-fg-active);
    background: rgba(255, 255, 255, .06);
}

.sidebar .nav-link.active {
    color: var(--sidebar-fg-active);
    background: rgba(13, 110, 253, .85);
}

/* --- kartlar / tablolar --- */

.card {
    border: 1px solid #e3e8ef;
    border-radius: 10px;
}

.table > :not(caption) > * > * {
    padding: .6rem .75rem;
}

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #6b7a90;
    font-weight: 600;
    border-bottom-width: 1px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-label {
    font-size: .8rem;
    color: #6b7a90;
}

/* Gizli anahtar gibi kopyalanacak degerler */
.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .82rem;
    word-break: break-all;
}

/* --- giris ekrani --- */

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-wrap .card {
    width: 100%;
    max-width: 380px;
}

.login-wrap .alert:empty {
    display: none;
}

/* Eslestirme kodu -- karsidan okunacak kadar buyuk, karakterler ayrisik */
.pairing-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: .35rem;
    text-align: center;
    padding: .75rem;
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
}
