/* UmreSoft Yönetim Paneli ve Kimlik Doğrulama (Auth) sayfaları için ana stil dosyası */

:root {
    --green: #12372a;
    --green2: #1c503c;
    --gold: #c6a66b;
    --paper: #f6f7f4;
    --ink: #17231d;
    --muted: #748078;
    --line: #e4e9e3;
    --white: #ffffff;
    --red: #bd4c43;
    --blue: #3768a8;
    --shadow: 0 8px 30px rgba(24, 59, 40, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Ana Uygulama Düzeni */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sol Sabit Sidebar */
.sidebar {
    width: 260px;
    background: var(--green);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 22px 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 20;
    transition: transform 0.2s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    color: #fff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gold);
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #e4c88e;
    font: 800 18px "Manrope", sans-serif;
    flex-shrink: 0;
}

.brand strong {
    display: block;
    font: 800 15px "Manrope", sans-serif;
    letter-spacing: 0.3px;
}

.brand small {
    display: block;
    color: #b9c9bf;
    margin-top: 2px;
    font-size: 11px;
}

.nav-label {
    font-size: 10px;
    color: #92a498;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 18px 10px 7px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #d1ded5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    transition: background 0.18s, color 0.18s;
}

.nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
}

.ico {
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.sidebar-foot {
    margin-top: auto;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.sidebar-user-name {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}

.sidebar-agency-name {
    color: #e4c88e;
    font-size: 11px;
    margin-top: 2px;
    margin-bottom: 10px;
}

.btn-logout {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(189, 76, 67, 0.22);
    color: #ffdad6;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.18s;
}

.btn-logout:hover {
    background: rgba(189, 76, 67, 0.45);
    color: #fff;
}

/* Sağ Ana Alan */
.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 0;
}

.topbar {
    height: 74px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.crumb {
    font-size: 12px;
    color: var(--muted);
}

.crumb strong {
    color: var(--ink);
    font-weight: 700;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search {
    border: 1px solid var(--line);
    background: #fafbf9;
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 10px;
    width: 230px;
    font-size: 12px;
    outline: none;
}

.search:focus {
    border-color: var(--green);
}

.avatar {
    width: 36px;
    height: 36px;
    background: #e8efe8;
    color: var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.page {
    padding: 28px 30px 44px;
    max-width: 1560px;
    margin: auto;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.eyebrow {
    color: #9a7a43;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.page h1 {
    font: 800 clamp(22px, 2vw, 29px) "Manrope", sans-serif;
    margin: 0;
    letter-spacing: -0.6px;
}

.sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Butonlar & Rozetler */
.btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 9px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.18s;
}

.btn:hover {
    background: #f5f7f5;
    border-color: #cfd8cf;
}

.btn.primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn.primary:hover {
    background: var(--green2);
}

.btn.danger {
    color: var(--red);
    border-color: #f2d0cd;
    background: #fff8f8;
}

.btn.danger:hover {
    background: #fee2e2;
}

.btn.small {
    padding: 6px 10px;
    font-size: 11px;
}

.pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.pill.warn {
    background: #fef3c7;
    color: #92400e;
}

.pill.success {
    background: #d1fae5;
    color: #065f46;
}

.pill.danger {
    background: #fee2e2;
    color: #991b1b;
}

.pill.info {
    background: #e0f2fe;
    color: #075985;
}

/* İstatistik Kartları */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stat-top {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font: 800 clamp(22px, 2vw, 28px) "Manrope", sans-serif;
    color: var(--ink);
    margin: 8px 0 4px;
}

.stat-foot {
    font-size: 12px;
    color: var(--muted);
}

/* Panel & Tablo */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.panel-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.panel-head h2 {
    font: 800 16px "Manrope", sans-serif;
    margin: 0;
}

.panel-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.panel-body {
    padding: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

th {
    background: #fbfcfb;
    color: #5c6b61;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fafbf9;
}

/* Formlar & Modal */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 11px;
    color: #59665d;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    border: 1px solid #dfe5de;
    background: #fff;
    border-radius: 9px;
    padding: 10px 12px;
    outline: none;
    font-size: 12.5px;
    width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 55, 42, 0.45);
    backdrop-filter: blur(3px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: min(560px, 100%);
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-head h2 {
    font: 800 18px "Manrope", sans-serif;
    margin: 0;
}

.x {
    border: 0;
    background: #f1f4f0;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: grid;
    place-items: center;
    color: #59665d;
}

/* Bildirim Kutuları */
.alert-box {
    padding: 12px 16px;
    border-radius: 11px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.alert-box.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-box.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Auth (Giriş & Kayıt) Sayfaları */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: #fff;
}

.auth-side {
    width: 100%;
    max-width: 560px;
    padding: 40px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual {
    flex: 1;
    background: linear-gradient(135deg, rgba(18, 55, 42, 0.85), rgba(18, 55, 42, 0.55)),
        url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    color: #fff;
}

.auth-visual-card {
    max-width: 440px;
    background: rgba(18, 55, 42, 0.72);
    backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(198, 166, 107, 0.35);
}

.mobile-menu {
    display: none;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .auth-visual {
        display: none;
    }
    .auth-side {
        max-width: 100%;
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 60;
        box-shadow: 6px 0 28px rgba(0, 0, 0, 0.28);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main {
        margin-left: 0;
        width: 100%;
    }
    .topbar {
        padding: 0 14px;
        height: 62px;
        gap: 10px;
    }
    .topbar .search {
        display: none;
    }
    .mobile-menu {
        display: inline-flex;
        padding: 7px 10px;
    }
    .page {
        padding: 16px 14px 28px;
    }
    .page-head {
        gap: 12px;
        margin-bottom: 18px;
    }
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }
    .stat {
        padding: 14px;
    }
    .panel-head {
        padding: 14px 16px;
    }
    .panel-body {
        padding: 16px;
    }
    .panel-head .search,
    .panel-head form,
    .panel-head select {
        width: 100%;
    }
    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }
    .form-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .modal {
        padding: 18px;
    }
}

