* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: #1f2937;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar .baslik { font-weight: 600; font-size: 18px; }
.topbar nav a { color: #d1d5db; margin-left: 16px; }
.topbar nav a:hover { color: #fff; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.kart {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ozet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .ozet-grid { grid-template-columns: 1fr; }
}

.ozet-kutu {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}

.ozet-kutu .etiket { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.ozet-kutu .deger { font-size: 22px; font-weight: 700; }
.deger.gelir { color: #16a34a; }
.deger.gider { color: #dc2626; }
.deger.net.pozitif { color: #16a34a; }
.deger.net.negatif { color: #dc2626; }

h1, h2, h3 { margin-top: 0; }

.tablo-sarici { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablo-sarici table { min-width: 480px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.tablo-sarici th, .tablo-sarici td { white-space: nowrap; }
.tablo-sarici td:nth-child(4) { white-space: normal; max-width: 160px; }
th { color: #6b7280; font-weight: 600; font-size: 13px; }

.etiket-tur {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.etiket-tur.gelir { background: #dcfce7; color: #166534; }
.etiket-tur.gider { background: #fee2e2; color: #991b1b; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

label { display: block; font-size: 13px; color: #374151; margin-bottom: 4px; font-weight: 600; }

input, select, textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1f2430;
}

input:focus, select:focus, textarea:focus { outline: 2px solid #2563eb33; border-color: #2563eb; }

.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.btn:hover { background: #1d4ed8; text-decoration: none; }
.btn.sil { background: #dc2626; }
.btn.sil:hover { background: #b91c1c; }
.btn.ikincil { background: #6b7280; }
.btn.ikincil:hover { background: #4b5563; }

.satir-eylem { display: flex; gap: 10px; }

.filtre-cubugu {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.filtre-cubugu > div { min-width: 140px; }

.uyari {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.basari {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.bar-satir { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.bar-satir .isim { width: 130px; flex-shrink: 0; color: #374151; }
.bar-satir .cubuk-alan { flex: 1; background: #f1f2f4; border-radius: 4px; overflow: hidden; height: 16px; }
.bar-satir .cubuk { height: 100%; background: #2563eb; }
.bar-satir .tutar { width: 100px; text-align: right; flex-shrink: 0; color: #1f2430; font-weight: 600; }

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-kutu { width: 320px; }
.login-kutu h1 { text-align: center; font-size: 20px; }
.login-kutu .btn { width: 100%; margin-top: 6px; }
.login-kutu .alan { margin-bottom: 14px; }

.bos-durum { color: #6b7280; font-size: 14px; padding: 16px 0; text-align: center; }
