/* ============================================================
   UTAS LOJİSTİK - Ana Stil Dosyası
   ============================================================ */

:root {
    --utas-navy:   #1a3a5c;
    --utas-orange: #e8920a;
    --utas-light:  #f4f7fb;
    --utas-border: #dee2e6;
    --utas-text:   #2d3748;
}

/* ── GENEL ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--utas-text);
}

/* ── LOGIN SAYFASI ──────────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2240 60%, #e8920a22 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.login-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 160px;
    height: auto;
}

.login-title {
    text-align: center;
    color: var(--utas-navy);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.8rem;
}

.login-footer {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    text-align: center;
    margin: 0;
}

/* ── UYGULAMA GÖVDE ─────────────────────────────────────────── */
.app-body {
    background: var(--utas-light);
    min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar-utas {
    background: linear-gradient(90deg, var(--utas-navy) 0%, #0d2240 100%);
    border-bottom: 3px solid var(--utas-orange);
    padding: 0.4rem 1rem;
}

.navbar-utas .brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.navbar-utas .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.navbar-utas .nav-link:hover,
.navbar-utas .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}

.navbar-utas .nav-link.active {
    border-bottom: 2px solid var(--utas-orange);
}

.user-badge {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.85rem;
}

.btn-logout {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(220,53,69,0.2);
    color: #ff8080 !important;
}

/* ── BUTONLAR ───────────────────────────────────────────────── */
.btn-utas {
    background: linear-gradient(135deg, var(--utas-orange), #c97a08);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-utas:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-utas:active { transform: translateY(0); }

/* ── FORM BÖLÜM BAŞLIKLARI ──────────────────────────────────── */
.form-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--utas-navy);
    border-left: 4px solid var(--utas-orange);
    padding-left: 10px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
    border-bottom: 1px solid var(--utas-border);
    padding-bottom: 1rem;
}

.text-utas { color: var(--utas-orange) !important; }

/* ── ÖZET KARTLAR ───────────────────────────────────────────── */
.ozet-kart {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid var(--utas-border);
    transition: box-shadow 0.2s;
}

.ozet-kart:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

.ozet-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bg-primary-soft { background: #e8f0fe; }
.bg-danger-soft  { background: #fde8e8; }
.bg-success-soft { background: #e8f8ed; }
.bg-warning-soft { background: #fff3cd; }

.ozet-sayi {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--utas-navy);
    line-height: 1.1;
}

.ozet-label {
    font-size: 0.78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── KART ───────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--utas-border);
    border-radius: 12px;
}

.card-header {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--utas-navy);
    border-bottom: 1px solid var(--utas-border);
}

/* ── TABLO ──────────────────────────────────────────────────── */
.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 0.65rem 0.75rem;
}

.table-dark thead th {
    background: var(--utas-navy) !important;
    border-color: #2a4a6c;
}

.table tbody td {
    font-size: 0.85rem;
    vertical-align: middle;
    padding: 0.5rem 0.75rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(26, 58, 92, 0.03);
}

.table-hover tbody tr:hover td {
    background-color: rgba(232, 146, 10, 0.07);
}

/* ── BADGE ──────────────────────────────────────────────────── */
.badge { font-size: 0.72rem; letter-spacing: 0.3px; }

/* ── INPUT ──────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--utas-orange);
    box-shadow: 0 0 0 0.2rem rgba(232,146,10,0.2);
}

.input-group-text {
    background: #f8f9fa;
    color: var(--utas-navy);
    font-weight: 600;
}

/* ── DATATables ÖZEL ────────────────────────────────────────── */
div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select {
    border: 1px solid var(--utas-border);
    border-radius: 6px;
    padding: 0.25rem 1.25rem;
    font-size: 0.85rem;
    padding-right: 1.5rem;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--utas-orange);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(232,146,10,0.15);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--utas-orange) !important;
    border-color: var(--utas-orange) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--utas-navy) !important;
    border-color: var(--utas-navy) !important;
    color: #fff !important;
}

/* ── SWEETALERT2 ÖZEL ───────────────────────────────────────── */
.swal2-confirm { font-weight: 600 !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ozet-sayi { font-size: 1rem; }
    .login-card { padding: 2rem 1.2rem; }
    .table thead th, .table tbody td { font-size: 0.78rem; padding: 0.4rem 0.5rem; }
}

/* ── SCROLL ─────────────────────────────────────────────────── */
.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: #f1f1f1; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--utas-orange); border-radius: 4px; }

/* ── IMPORT MODAL ───────────────────────────────────────────── */
.import-drop-zone {
    border: 2px dashed var(--utas-border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    background: #fafbfc;
}

.import-drop-zone:hover,
.import-drop-zone.drag-over {
    border-color: var(--utas-orange);
    background: rgba(232,146,10,0.05);
}

.import-drop-zone.drag-over {
    border-style: solid;
}

#importOnizlemeTablo thead th {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

#importOnizlemeTablo tbody td {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
}

/* ── PARA BİRİMİ DROPDOWN ───────────────────────────────────── */
#paraBirimiBtn {
    font-size: 0.875rem;
    border-color: var(--utas-border);
    color: var(--utas-navy);
    white-space: nowrap;
}

#paraBirimiBtn:hover {
    background: rgba(26,58,92,0.06);
    border-color: var(--utas-navy);
}

.para-dropdown-simge {
    display: inline-block;
    width: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--utas-orange);
}

.dropdown-item.btn-para.active {
    background: rgba(26,58,92,0.08);
    color: var(--utas-navy);
    font-weight: 600;
}

.dropdown-item.btn-para.active::after {
    content: " ✓";
    color: var(--utas-orange);
    font-weight: 700;
}

.dropdown-item.btn-para:hover {
    background: rgba(232,146,10,0.08);
}

/* ── PARA BİRİMİ ÖZET KARTLARI ─────────────────────────────── */
.ozet-kart-pb {
    padding: 0.85rem 1rem;
    align-items: flex-start;
}

.ozet-pb-baslik {
    margin-bottom: 0.5rem;
}

.pb-rozet {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.pb-try { background: #fff3cd; color: #856404; }
.pb-usd { background: #d1fae5; color: #065f46; }
.pb-eur { background: #dbeafe; color: #1e40af; }

.ozet-pb-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 1px 0;
}

.ozet-pb-label {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.ozet-pb-deger {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
