/* ===================================================================
   ATES CRM — Modern UI (Poppins)
   =================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* === Premium Palet === */
    --ink:          #0B1220;   /* deep navy/charcoal */
    --ink-2:        #111A2E;
    --ink-3:        #1B2540;
    --line:         #E6EAF2;
    --line-2:       #D6DCEA;
    --paper:        #FAFBFD;
    --paper-2:      #F3F5FA;
    --white:        #ffffff;

    /* Amber/Altın vurgu */
    --amber:        #F5B400;
    --amber-2:      #FFC93C;
    --amber-glow:   rgba(245, 180, 0, 0.45);
    --amber-soft:   rgba(245, 180, 0, 0.10);

    /* Metin tonları */
    --text:         #0B1220;
    --text-2:       #3B4660;
    --text-soft:    #7A8499;
    --muted:        #9BA3B5;

    --success:      #10B981;
    --error:        #EF4444;

    /* Yumuşak gölgeler */
    --shadow-xl:    0 30px 60px -20px rgba(11, 18, 32, 0.35), 0 18px 36px -18px rgba(11, 18, 32, 0.25);
    --shadow-lg:    0 20px 40px -15px rgba(11, 18, 32, 0.25);
    --shadow-md:    0 8px 24px -8px rgba(11, 18, 32, 0.18);
    --shadow-sm:    0 2px 8px rgba(11, 18, 32, 0.06);

    --radius:       14px;
    --radius-lg:    20px;
}

html, body { height: 100%; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber); }

/* ===================================================================
   LOGIN — Yaratıcı tasarım
   =================================================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(245, 180, 0, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(99, 102, 241, 0.12), transparent 60%),
        linear-gradient(180deg, #0B1220 0%, #0E1628 50%, #0B1220 100%);
    position: relative;
    overflow: hidden;
}

/* İnce ızıgara deseni */
.login-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

/* Yüzen kabarcıklar */
.bg-bubbles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    list-style: none;
    pointer-events: none;
}
.bg-bubbles li {
    position: absolute;
    bottom: -160px;
    width: 40px;
    height: 40px;
    background: rgba(245, 180, 0, 0.06);
    border: 1px solid rgba(245, 180, 0, 0.10);
    border-radius: 50%;
    animation: bubbleRise 22s linear infinite;
}
.bg-bubbles li:nth-child(1)  { left: 10%; }
.bg-bubbles li:nth-child(2)  { left: 20%; width: 80px; height: 80px; animation-delay: 2s; animation-duration: 17s; }
.bg-bubbles li:nth-child(3)  { left: 25%; animation-delay: 4s; }
.bg-bubbles li:nth-child(4)  { left: 40%; width: 60px; height: 60px; animation-duration: 25s; background: rgba(245,180,0,0.10); }
.bg-bubbles li:nth-child(5)  { left: 70%; }
.bg-bubbles li:nth-child(6)  { left: 80%; width: 100px; height: 100px; animation-delay: 3s; background: rgba(245,180,0,0.07); }
.bg-bubbles li:nth-child(7)  { left: 32%; width: 120px; height: 120px; animation-delay: 7s; }
.bg-bubbles li:nth-child(8)  { left: 55%; width: 30px; height: 30px; animation-delay: 15s; animation-duration: 45s; }
.bg-bubbles li:nth-child(9)  { left: 25%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 35s; background: rgba(245,180,0,0.14); }
.bg-bubbles li:nth-child(10) { left: 90%; width: 140px; height: 140px; animation-delay: 11s; }

@keyframes bubbleRise {
    0%   { transform: translateY(0) rotate(0); opacity: 0; border-radius: 50%; }
    10%  { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; border-radius: 35%; }
}

/* Kart kapsayıcı */
.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    animation: cardEnter .7s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(40px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.6);
}

/* --- Sol panel (brand) --- */
.login-left {
    position: relative;
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(245, 180, 0, 0.22), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(255, 201, 60, 0.10), transparent 65%),
        linear-gradient(160deg, #0B1220 0%, #111A2E 60%, #0B1220 100%);
    color: var(--white);
    padding: 40px 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Glow orb'lar */
.login-left::before,
.login-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.login-left::before {
    width: 260px; height: 260px;
    top: -80px; right: -80px;
    background: radial-gradient(circle, rgba(245, 180, 0, 0.55), transparent 70%);
}
.login-left::after {
    width: 220px; height: 220px;
    bottom: -90px; left: -70px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}

.left-content { position: relative; z-index: 1; }

.logo-circle {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.logo-circle svg { width: 28px; height: 28px; color: var(--ink); stroke-width: 2.4; }

.login-left h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--white);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFC93C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-left h2 span {
    display: block;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
    color: rgba(255, 255, 255, 0.55);
    background: none;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 6px;
}

.login-left p {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.6;
}

.features { list-style: none; }
.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}
.features .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 12px var(--amber-glow);
}

/* --- Sağ panel (form) --- */
.login-right {
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-form-box {
    width: 100%;
    max-width: 360px;
}
.login-form-box h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.login-form-box .wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}
@keyframes wave {
    0%, 60%, 100% { transform: rotate(0); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-10deg); }
}
.subtitle {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 22px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.input-wrap {
    position: relative;
    display: block;
}
.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    color: var(--muted);
    pointer-events: none;
    transition: color .2s;
}
.form-group .input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    color: var(--ink);
    background: var(--paper-2);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group .input-wrap input::placeholder { color: var(--muted); font-weight: 400; }
.form-group .input-wrap input:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.08), 0 1px 3px rgba(11, 18, 32, 0.06);
}
.input-wrap:focus-within .input-icon { color: var(--ink); }

.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}
.toggle-pass:active { transform: translateY(-50%); }
.toggle-pass:hover { color: var(--ink); background: var(--paper-2); }
.toggle-pass svg { width: 18px; height: 18px; }

/* Buton */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: transform .08s, box-shadow .2s, background .2s, opacity .2s;
}
button:active { transform: translateY(1px); }
button[disabled] { opacity: .7; cursor: not-allowed; }

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #111A2E 0%, #0B1220 100%);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 13px 18px;
    border-radius: 12px;
    margin-top: 6px;
    border: 1px solid var(--ink);
    box-shadow: 0 10px 24px -10px rgba(11, 18, 32, 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform .08s, box-shadow .25s, filter .25s;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--amber-2) 0%, var(--amber) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 0;
}
.btn-primary:hover:not([disabled])::before { opacity: 1; }
.btn-primary:hover:not([disabled]) {
    color: var(--ink);
    box-shadow: 0 14px 30px -8px var(--amber-glow);
}
.btn-primary .btn-text,
.btn-primary .btn-arrow { position: relative; z-index: 1; }
.btn-primary .btn-arrow { transition: transform .25s; font-size: 17px; }
.btn-primary:hover:not([disabled]) .btn-arrow { transform: translateX(5px); }
.btn-primary.loading .btn-arrow { display: none; }
.btn-primary.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Şifremi unuttum linki */
.form-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 10px;
}
.forgot-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color .2s;
    border-bottom: 1px dashed transparent;
}
.forgot-link:hover {
    color: var(--ink);
    border-bottom-color: var(--amber);
}

/* Ayraç */
.divider {
    text-align: center;
    margin: 16px 0 12px;
    position: relative;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--line);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }
.divider span { background: var(--white); padding: 0 12px; position: relative; }

/* Alternatif giriş butonları */
.alt-logins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.btn-alt {
    width: 100%;
    background: var(--white);
    color: var(--text-2);
    border: 1.5px solid var(--line);
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: relative;
    cursor: not-allowed;
    opacity: 0.75;
    transition: opacity .2s, border-color .2s, background .2s, transform .08s;
}
.btn-alt:hover {
    opacity: 0.95;
    border-color: var(--ink);
    background: var(--paper-2);
}
.btn-alt .alt-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.btn-alt.btn-sms .alt-icon { color: var(--ink); }
.btn-alt .badge-soon {
    position: absolute;
    top: -7px;
    right: 6px;
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    color: var(--ink);
    font-size: 8.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px var(--amber-glow);
}

.btn-secondary {
    background: var(--paper-2);
    color: var(--ink);
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--line);
    transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: var(--white); border-color: var(--ink); }

/* Mesaj kutusu */
.msg {
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    animation: msgIn .3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.msg.show { display: block; }
.msg.error   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.msg.success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

.login-footer {
    margin-top: 18px;
    text-align: center;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 820px) {
    .login-card { grid-template-columns: 1fr; min-height: auto; }
    .login-left { display: none; }
    .login-right { padding: 40px 28px; }
}

/* ===================================================================
   APP LAYOUT — Sidebar + Topbar (login ile aynı tema)
   =================================================================== */

.app-body {
    background:
        radial-gradient(1000px 500px at 100% -10%, rgba(245, 180, 0, 0.06), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(99, 102, 241, 0.05), transparent 60%),
        var(--paper);
    min-height: 100vh;
    display: flex;
}

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background:
        radial-gradient(700px 350px at 100% 0%, rgba(245, 180, 0, 0.18), transparent 60%),
        linear-gradient(180deg, #0B1220 0%, #111A2E 60%, #0B1220 100%);
    color: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 30;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand {
    padding: 22px 22px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    flex-shrink: 0;
    box-shadow: 0 8px 22px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.sidebar-logo svg { width: 22px; height: 22px; }
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sidebar-brand-text strong {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFC93C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.sidebar-brand-text span {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .2s, color .2s, transform .15s;
    position: relative;
}
.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}
.nav-item .nav-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity .2s, color .2s;
}
.nav-item.active {
    background: linear-gradient(90deg, rgba(245,180,0,0.18) 0%, rgba(245,180,0,0.04) 100%);
    color: var(--white);
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: linear-gradient(180deg, var(--amber-2), var(--amber));
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px var(--amber-glow);
}
.nav-item.active .nav-icon { color: var(--amber); opacity: 1; }

.sidebar-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* --- Main area --- */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* --- Topbar (yeni) --- */
.topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 20;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; display: block; }

.page-title-wrap { flex: 1; }
.page-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
    margin: 0;
    border-left: 3px solid var(--amber);
    padding-left: 12px;
    line-height: 1.2;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px var(--amber-glow);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta strong { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.user-meta small { color: var(--text-soft); font-size: 11px; }

.btn-logout {
    background: var(--paper-2);
    color: var(--text-2);
    border: 1px solid var(--line);
    padding: 9px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-logout:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-logout svg { width: 17px; height: 17px; }

/* --- Content --- */
.content {
    flex: 1;
    padding: 28px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-2);
}
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon-amber { background: linear-gradient(135deg, #FFE89C, #FFC93C); color: #7A4F00; box-shadow: 0 6px 16px rgba(245,180,0,0.25); }
.stat-icon-blue  { background: linear-gradient(135deg, #DBE7FF, #87A8FF); color: #1E3A8A; box-shadow: 0 6px 16px rgba(99,102,241,0.20); }
.stat-icon-green { background: linear-gradient(135deg, #C3F4D8, #6FE5A0); color: #065F46; box-shadow: 0 6px 16px rgba(16,185,129,0.20); }
.stat-icon-pink  { background: linear-gradient(135deg, #FDD2E1, #F899B8); color: #9D174D; box-shadow: 0 6px 16px rgba(236,72,153,0.18); }

.stat-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-soft); font-weight: 500; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat-trend { font-size: 11px; color: var(--muted); }

/* Panel */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.panel + .panel { margin-top: 18px; }
.panel-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.panel-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.panel-body { padding: 22px; }

.muted { color: var(--text-soft); font-size: 13.5px; }

.btn-primary-sm {
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-primary-sm:hover:not([disabled]) { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary-sm[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Quick actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, border-color .2s, transform .08s;
}
.quick-btn:hover {
    background: var(--white);
    border-color: var(--ink);
    color: var(--ink);
}
.quick-btn svg { width: 14px; height: 14px; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}
.empty-icon {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: var(--paper-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.empty-icon svg { width: 36px; height: 36px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-soft); max-width: 360px; margin: 0 auto; }

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(2px);
    z-index: 25;
    opacity: 0;
    transition: opacity .25s;
}
.sidebar-backdrop.show { display: block; opacity: 1; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 12px 0 40px rgba(0,0,0,0.25);
    }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: inline-flex; }
    .content { padding: 18px; }
    .user-meta { display: none; }
    .topbar { padding: 12px 16px; }
}

/* Eski .container & .brand kuralları geri uyum (login d\u0131\u015f\u0131) */
.container {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 28px;
}

/* ===================================================================
   DATA TABLE + MODAL + FORM (Araçlar modülü)
   =================================================================== */

.panel-header-left  { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-0 { padding: 0 !important; }

.search-input {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--ink);
    width: 260px;
    max-width: 100%;
    transition: border-color .2s, background .2s, box-shadow .2s;
    font-family: inherit;
}
.search-input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15);
}

/* Tablo */
.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.data-table thead th {
    background: var(--paper-2);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    vertical-align: middle;
}
.data-table tbody tr:hover { background: rgba(245, 180, 0, 0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .text-right { text-align: right; }
.data-table .td-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 40px 16px !important;
    font-style: italic;
}

.plate {
    display: inline-block;
    background: var(--ink);
    color: var(--amber);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 12.5px;
    font-family: 'Courier New', monospace;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-green { background: #DCF7E5; color: #066B36; }
.badge-amber { background: #FFEFC2; color: #7A4F00; }
.badge-blue  { background: #DBE7FF; color: #1E3A8A; }
.badge-gray  { background: #ECEEF3; color: #4B5563; }

/* İkon butonlar */
.btn-icon {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-2);
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    margin-left: 4px;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-icon:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-icon-danger:hover { background: #DC2626; border-color: #DC2626; color: var(--white); }

/* ---- Modal ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn .2s ease;
}
.modal[hidden] { display: none; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(11, 18, 32, 0.35);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlide .25s cubic-bezier(.2,.9,.3,1);
}
.modal-dialog.modal-lg { max-width: 720px; }
@keyframes modalSlide { from { transform: translateY(20px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    border-left: 3px solid var(--amber);
    padding-left: 12px;
    line-height: 1.2;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-soft);
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    background: var(--paper-2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 22px -22px -22px;
}

/* ---- Form grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group-full { grid-column: 1 / -1; }
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.2px;
}
.form-group label .req { color: #DC2626; }
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15);
}
.form-group textarea { resize: vertical; min-height: 60px; }

.form-msg { margin-top: 14px; }
.form-msg .msg {
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
}
.form-msg .msg.error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.form-msg .msg.success { background: #DCF7E5; color: #066B36; border: 1px solid #6EE7B7; }
.form-msg .msg.info    { background: #DBE7FF; color: #1E3A8A; border: 1px solid #93C5FD; }

.btn-primary {
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-primary:hover:not([disabled]) { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--line);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .search-input { width: 100%; }
    .panel-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .panel-header-right { justify-content: space-between; }
}

/* ===================================================================
   SweetAlert2 — proje paletine uyum
   =================================================================== */
.swal2-container { font-family: 'Poppins', system-ui, sans-serif !important; }
.app-swal {
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(11, 18, 32, 0.25) !important;
    padding: 8px 4px !important;
}
.app-swal .swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
}
.app-swal .swal2-html-container {
    font-size: 14px !important;
    color: var(--text-2) !important;
}
.app-swal-confirm {
    background: var(--ink) !important;
    color: var(--white) !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: background .2s, color .2s !important;
}
.app-swal-confirm:hover { background: var(--amber) !important; color: var(--ink) !important; }
.app-swal-confirm:focus { box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.25) !important; }

.app-swal-cancel {
    background: var(--paper-2) !important;
    color: var(--text-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}
.app-swal-cancel:hover { background: var(--white) !important; color: var(--ink) !important; }

/* Toast variant */
.swal2-toast.app-swal {
    padding: 12px 16px !important;
    border-left: 4px solid var(--amber);
}
.swal2-icon.swal2-success [class^='swal2-success-line']     { background-color: #10B981 !important; }
.swal2-icon.swal2-success .swal2-success-ring                { border-color: rgba(16,185,129,0.3) !important; }
.swal2-icon.swal2-warning { color: var(--amber) !important; border-color: var(--amber) !important; }
.swal2-icon.swal2-question { color: var(--ink) !important; border-color: var(--ink) !important; }

.phone-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.phone-link:hover { color: var(--amber); }

/* ===================================================================
   TAKVİM (Müsaitlik)
   =================================================================== */
.btn-sm { padding: 6px 12px !important; font-size: 12px !important; }

.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: #10B981; }
.dot-amber { background: var(--amber); }
.dot-red   { background: #DC2626; }

.calendar { user-select: none; }
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cal-weekdays > div { padding: 8px 10px; text-align: left; }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-loading { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--text-soft); font-style: italic; }

.cal-cell {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, border-color .15s;
    position: relative;
    overflow: hidden;
}
.cal-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11,18,32,0.10);
    border-color: var(--ink);
}
.cal-cell-empty { background: transparent; border: none; cursor: default; min-height: 0; }
.cal-cell-empty:hover { transform: none; box-shadow: none; }

.cal-day-num { font-weight: 700; font-size: 15px; color: var(--ink); }
.cal-day-info { display: flex; flex-direction: column; font-size: 11px; line-height: 1.4; }
.cal-rented { color: #991B1B; font-weight: 600; }
.cal-avail  { color: #066B36; }

.cal-cell.is-today { box-shadow: 0 0 0 2px var(--amber) inset; }

.cal-cell.state-free    { background: linear-gradient(160deg, #ECFDF5 0%, #FFFFFF 70%); border-color: #6EE7B7; }
.cal-cell.state-partial { background: linear-gradient(160deg, #FEF3C7 0%, #FFFFFF 70%); border-color: #FCD34D; }
.cal-cell.state-full    { background: linear-gradient(160deg, #FEE2E2 0%, #FFFFFF 70%); border-color: #FCA5A5; }
.cal-cell.state-none    { background: var(--paper-2); }

/* Gün modal içerikleri */
.day-section { margin-bottom: 18px; }
.day-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    border-left: 3px solid var(--amber);
    padding-left: 10px;
    margin-bottom: 12px;
}
.day-section .small { font-size: 12px; }

.rental-list { display: flex; flex-direction: column; gap: 8px; }
.rental-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) minmax(140px, 1.2fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--paper-2);
    border-radius: 10px;
    border: 1px solid var(--line);
}
.rental-row .rental-car { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rental-row .rental-cust { display: flex; flex-direction: column; line-height: 1.25; }
.rental-row .rental-dates { white-space: nowrap; }
.rental-row .rental-actions { display: flex; align-items: center; gap: 6px; }

.avail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.avail-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.avail-card .plate { align-self: flex-start; }

@media (max-width: 720px) {
    .cal-cell { min-height: 64px; padding: 6px 8px; border-radius: 8px; }
    .cal-day-num { font-size: 13px; }
    .cal-day-info { font-size: 10px; }
    .cal-weekdays { font-size: 10px; }
    .rental-row { grid-template-columns: 1fr; }
}

/* ===== Raporlar ===== */
.rep-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: end;
}
.rep-filters .form-group { margin: 0; min-width: 0; }
.rep-filters .form-group input,
.rep-filters .form-group select { width: 100%; min-width: 0; }
.rep-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.rep-quick { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
}
.rep-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
@media (max-width: 1200px) {
    .rep-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .rep-filters  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rep-grid-2   { grid-template-columns: 1fr; }
    .rep-quick    { margin-left: 0; }
}
@media (max-width: 480px) {
    .rep-filters { grid-template-columns: 1fr; }
}

/* ===== Toplu SMS ===== */
.sms-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}
@media (max-width: 900px) { .sms-grid { grid-template-columns: 1fr; } }

.sms-recipients { display: flex; flex-direction: column; min-width: 0; }
.sms-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sms-tab {
    background: transparent; border: 0; padding: 8px 14px;
    font-size: 13px; font-weight: 500; color: var(--text-soft);
    cursor: pointer; border-bottom: 2px solid transparent;
}
.sms-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.sms-tab-pane { display: none; }
.sms-tab-pane.active { display: block; }
.sms-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.sms-toolbar .search-input { flex: 1; min-width: 180px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

.sms-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--paper-2);
}
.sms-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.sms-item:last-child { border-bottom: 0; }
.sms-item:hover { background: var(--white); }
.sms-item-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sms-item-name small { font-size: 11px; }
.sms-item-phone { font-family: monospace; color: var(--text-soft); font-size: 12px; }

#smsManual { width: 100%; min-height: 250px; font-family: monospace; }

.sms-compose .form-group { margin-bottom: 10px; }
.sms-compose textarea { resize: vertical; min-height: 200px; }
.sms-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-soft);
    padding: 8px 0; border-top: 1px dashed var(--line);
}

/* Header'a select sığsın */
.panel-header-right select {
    height: 36px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--white);
    font-size: 13px;
}

/* NetGSM bakiye kartı */
.netgsm-balance { margin-bottom: 16px; }
.balance-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff8e6, #fff);
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    border-radius: 12px;
}
.balance-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--amber);
    color: var(--ink);
}
.balance-info { display: flex; flex-direction: column; flex: 1; }
.balance-info small { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-soft); }
.balance-info strong { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.balance-info strong.balance-error { font-size: 13px; color: #DC2626; font-weight: 500; }
