/* MyDesk Portal */
:root {
    --md-blue: #0b57c2;
    --md-blue-dark: #0846a0;
    --md-red: #e8312f;
    --md-yellow: #f5b800;
    --md-green: #4caf1a;
    --md-ink: #111827;
    --md-muted: #6b7280;
    --md-bg: #f4f6fb;
    --md-border: #e5e7eb;
    --bs-primary: #0b57c2;
    --bs-primary-rgb: 11, 87, 194;
    --bs-link-color: #0b57c2;
    --bs-link-color-rgb: 11, 87, 194;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body { background: var(--md-bg); color: var(--md-ink); }
.btn-primary { --bs-btn-bg: var(--md-blue); --bs-btn-border-color: var(--md-blue); --bs-btn-hover-bg: var(--md-blue-dark); --bs-btn-hover-border-color: var(--md-blue-dark); --bs-btn-active-bg: var(--md-blue-dark); --bs-btn-disabled-bg: var(--md-blue); --bs-btn-disabled-border-color: var(--md-blue); }
.btn-outline-primary { --bs-btn-color: var(--md-blue); --bs-btn-border-color: var(--md-blue); --bs-btn-hover-bg: var(--md-blue); --bs-btn-hover-border-color: var(--md-blue); }
.form-control:focus, .form-select:focus { border-color: #7aa7ea; box-shadow: 0 0 0 .2rem rgba(11, 87, 194, .15); }
.form-label { font-weight: 500; font-size: .9rem; }

/* ---------- Giriş ekranları ---------- */
.auth-bg {
    min-height: 100vh;
    background:
        radial-gradient(600px 400px at 8% 12%, rgba(11, 87, 194, .10), transparent 60%),
        radial-gradient(500px 380px at 92% 18%, rgba(245, 184, 0, .12), transparent 60%),
        radial-gradient(520px 420px at 85% 92%, rgba(76, 175, 26, .10), transparent 60%),
        radial-gradient(480px 380px at 10% 90%, rgba(232, 49, 47, .08), transparent 60%),
        #f6f8fc;
}
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 14px; }
.auth-card { overflow: hidden; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(17, 24, 39, .08); padding: 36px 32px 28px; }
.auth-logo { display: block; margin: 0 auto 8px; max-height: 58px; max-width: 240px; object-fit: contain; }
.auth-firma { text-align: center; color: var(--md-muted); font-size: .9rem; margin-bottom: 22px; }
.auth-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.auth-sub { color: var(--md-muted); font-size: .9rem; margin-bottom: 20px; }
.auth-tabs { display: flex; background: #f1f4f9; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--md-muted); transition: .15s; }
.auth-tabs button.active { background: #fff; color: var(--md-blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.auth-card .form-control { padding: .7rem .9rem; border-radius: 10px; }
.auth-card .input-group-text { border-radius: 10px 0 0 10px; background: #f8fafc; color: var(--md-muted); }
.auth-card .input-group .form-control { border-radius: 0 10px 10px 0; }
.auth-card .btn-lg { border-radius: 10px; font-size: 1rem; padding: .75rem; font-weight: 600; }
.auth-foot { text-align: center; color: #9ca3af; font-size: .78rem; margin-top: 18px; }
.auth-colors { display: flex; height: 4px; border-radius: 4px; overflow: hidden; margin: -36px -32px 30px; border-radius: 20px 20px 0 0; }
.auth-colors span { flex: 1; }
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 8px 0 18px; }
.otp-inputs input { width: 50px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 600; border: 1.5px solid var(--md-border); border-radius: 12px; outline: none; transition: .15s; background: #fafbfd; }
.otp-inputs input:focus { border-color: var(--md-blue); background: #fff; box-shadow: 0 0 0 3px rgba(11, 87, 194, .12); }
.otp-inputs.error input { border-color: var(--md-red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 400px) { .otp-inputs input { width: 42px; height: 52px; font-size: 1.3rem; } .auth-card { padding: 30px 20px 22px; } .auth-colors { margin: -30px -20px 26px; } }
.otp-meta { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--md-muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--md-blue); font-weight: 500; }
.link-btn:disabled { color: #9ca3af; }

/* ---------- Üst panel düzeni ---------- */
.md-layout { display: flex; min-height: 100vh; }
.md-sidebar { width: 250px; background: #fff; border-right: 1px solid var(--md-border); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1030; transition: transform .2s; }
.md-sidebar .brand { padding: 20px 22px 16px; border-bottom: 1px solid var(--md-border); }
.md-sidebar .brand img { height: 34px; }
.md-sidebar .brand small { display: block; color: var(--md-muted); font-size: .72rem; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.md-nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.md-nav .nav-title { font-size: .7rem; text-transform: uppercase; color: #9ca3af; letter-spacing: .06em; padding: 12px 12px 6px; }
.md-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #374151; text-decoration: none; font-size: .92rem; margin-bottom: 2px; }
.md-nav a i { font-size: 1.05rem; color: #9ca3af; }
.md-nav a:hover { background: #f3f6fb; }
.md-nav a.active { background: #eaf1fd; color: var(--md-blue); font-weight: 600; }
.md-nav a.active i { color: var(--md-blue); }
.md-nav a.sub { padding-left: 40px; font-size: .87rem; }
.md-sidebar .foot { padding: 14px 22px; border-top: 1px solid var(--md-border); font-size: .78rem; color: var(--md-muted); }
.md-main { flex: 1; margin-left: 250px; min-width: 0; }
.md-topbar { height: 62px; background: #fff; border-bottom: 1px solid var(--md-border); display: flex; align-items: center; padding: 0 24px; gap: 12px; position: sticky; top: 0; z-index: 1020; }
.md-topbar h1 { font-size: 1.1rem; margin: 0; font-weight: 600; }
.md-content { padding: 24px; }
.md-user { display: flex; align-items: center; gap: 10px; }
.md-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--md-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; }
.md-burger { display: none; border: 0; background: none; font-size: 1.4rem; }
@media (max-width: 991px) {
    .md-sidebar { transform: translateX(-100%); box-shadow: 0 0 30px rgba(0, 0, 0, .15); }
    body.sidebar-open .md-sidebar { transform: none; }
    .md-main { margin-left: 0; }
    .md-burger { display: block; }
    .md-content { padding: 16px; }
}

.card { border: 1px solid var(--md-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.card-header { background: #fff; border-bottom: 1px solid var(--md-border); padding: 14px 18px; font-weight: 600; border-radius: 14px 14px 0 0 !important; }
.stat-card { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat-card .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.stat-card .val { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.stat-card .lbl { color: var(--md-muted); font-size: .85rem; }
.ico-blue { background: #eaf1fd; color: var(--md-blue); }
.ico-green { background: #edf8e6; color: #3d8f13; }
.ico-yellow { background: #fff6dc; color: #b58800; }
.ico-red { background: #fdecec; color: #c62828; }
.table > :not(caption) > * > * { padding: .75rem .9rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: var(--md-muted); font-weight: 600; letter-spacing: .03em; background: #fafbfd; }
.nav-tabs .nav-link { color: var(--md-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--md-blue); }
.settings-nav .nav-link { color: #374151; border-radius: 9px; padding: 9px 14px; display: flex; gap: 10px; align-items: center; }
.settings-nav .nav-link.active { background: #eaf1fd; color: var(--md-blue); font-weight: 600; }
.dns-box { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.dns-box .k { color: #93c5fd; }
.copy-btn { cursor: pointer; }
.update-log { background: #0f172a; color: #cbd5e1; border-radius: 10px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; max-height: 320px; overflow: auto; white-space: pre-wrap; }
.dropzone { border: 2px dashed #c7d2e4; border-radius: 14px; padding: 34px; text-align: center; background: #fafcff; cursor: pointer; transition: .15s; }
.dropzone.drag { border-color: var(--md-blue); background: #eef4ff; }
.logo-preview { max-height: 60px; max-width: 200px; object-fit: contain; border: 1px solid var(--md-border); border-radius: 8px; padding: 6px; background: #fff; }

/* toast */
.md-toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.md-toast { min-width: 260px; max-width: 380px; background: #111827; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); display: flex; gap: 10px; align-items: flex-start; animation: fadeIn .2s; }
.md-toast.success { background: #166534; }
.md-toast.error { background: #b91c1c; }
.md-toast.warning { background: #a16207; }
