/* ?? GENEL ?? */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; height: 100%; }

/* ?? LOGIN ?? */
.login-bg {
    min-height: 100vh;
    background: #1A1A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.login-ellipse-1 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: rgba(178,34,34,.12); top: -120px; left: -100px; pointer-events: none;
}
.login-ellipse-2 {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(220,20,60,.1); bottom: -80px; right: -60px; pointer-events: none;
}
.login-center  { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.login-logo-wrap {
    width: 80px; height: 80px; border-radius: 20px;
    background: rgba(178,34,34,.2); display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: .5rem;
}
.login-logo-icon { font-size: 2.2rem; color: #CD5C5C; }
.login-title {
    font-size: 2rem; font-weight: 800; color: #fff;
    letter-spacing: 4px;
}
.login-card {
    background: #fff; border-radius: 24px;
    padding: 2rem 1.8rem;
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.login-conn-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600;
    border: 1px solid;
}
.conn-ok  { border-color: #4CAF50; color: #2E7D32; background: #F1F8E9; }
.conn-err { border-color: #f44336; color: #B71C1C; background: #FFEBEE; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.login-input-wrap { position: relative; }
.login-input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #9e9e9e; font-size: .9rem; z-index: 1;
}
.login-input { padding-left: 2.4rem !important; border-radius: 12px !important; }
.btn-login {
    background: #B22222; color: #fff; border: none;
    border-radius: 14px; height: 50px; font-weight: 700;
    font-size: .95rem; letter-spacing: 1px;
    transition: background .2s;
}
.btn-login:hover:not(:disabled) { background: #8B1A1A; color: #fff; }
.btn-login:disabled { background: #BDBDBD; }

/* ?? LAYOUT ?? */
.mstok-layout { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* Üst bar */
.mstok-topbar {
    display: flex; align-items: center; gap: .75rem;
    background: #1A1A2E; height: 60px; padding: 0 1rem;
    flex-shrink: 0;
}
.topbar-hamburger {
    background: none; border: none; color: #fff;
    font-size: 1.4rem; cursor: pointer; padding: 4px 8px;
}
.topbar-title { flex: 1; color: #fff; }
.topbar-title .fw-bold { font-size: .95rem; }
.topbar-date  { font-size: .72rem; color: #6E6E88; }
.topbar-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #25253E; border: 2px solid #6E6E88;
    color: #fff; font-weight: 700; font-size: .85rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Body */
.mstok-body { display: flex; flex: 1; overflow: hidden; position: relative; }

/* Drawer */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
}
.mstok-drawer {
    width: 280px; background: #2C3E50;
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: -300px; bottom: 0;
    z-index: 101; transition: left .25s ease;
    overflow-y: auto;
}
.mstok-drawer.open { left: 0; }
.drawer-header {
    background: #1A252F; padding: 1rem 1.2rem;
    display: flex; align-items: center; gap: .8rem; flex-shrink: 0;
}
.drawer-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: #B71C1C; border: 2px solid #FFCDD2;
    color: #fff; font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.drawer-label { color: #95A5A6; font-size: .75rem; font-weight: 700; padding: .7rem 1rem .3rem; }
.drawer-menu  { flex: 1; padding: .4rem .6rem; }
.drawer-grup-btn {
    width: 100%; border: none; border-radius: 8px; padding: .7rem 1rem;
    color: #fff; font-weight: 700; font-size: .88rem;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; margin-bottom: .4rem;
}
.drawer-alt-btn {
    width: 100%; background: #34495E; border: none; border-radius: 6px;
    padding: .6rem 1rem; color: #BDC3C7; font-size: .84rem;
    text-align: left; cursor: pointer; margin-bottom: 2px;
}
.drawer-alt-btn:hover { background: #3D5166; color: #fff; }
.drawer-footer { padding: 1rem; background: #1A252F; flex-shrink: 0; }

/* Ana içerik */
.mstok-content { flex: 1; overflow-y: auto; background: #F0F2F5; }
.mstok-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 200px; color: #555;
}

/* Hub */
.hub-container { padding: 1rem; max-width: 700px; margin: 0 auto; }
.hub-label { color: #95A5A6; font-size: .78rem; font-weight: 700; margin: .5rem .3rem .6rem; }
.hub-card {
    background: #fff; border-radius: 14px; margin-bottom: .8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08); overflow: hidden; cursor: pointer;
}
.hub-card-stripe { height: 5px; }
.hub-card-body   { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; }
.hub-card-icon {
    width: 40px; height: 40px; border-radius: 20px; flex-shrink: 0;
    color: #fff; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.hub-card-alts { padding: .3rem .8rem .8rem 1.2rem; border-top: 1px solid #F0F0F0; }
.hub-alt-btn {
    display: block; width: 100%; background: #F8F9FA; border: none;
    border-radius: 8px; padding: .55rem 1rem; margin-bottom: 3px;
    text-align: left; font-size: .88rem; color: #34495E; cursor: pointer;
}
.hub-alt-btn:hover { background: #EBEBEB; }

/* Seçili sayfa */
.content-topbar {
    background: #fff; padding: .6rem 1rem;
    display: flex; align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.content-body { padding: 1rem; }

/* Blazor reconnect overlay */
#components-reconnect-modal { display: none !important; }
