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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 24px;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.kart {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.kart h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.ozet {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ozet-kart {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border: 1px solid #ddd;
    border-left: 5px solid #888;
    border-radius: 6px;
    padding: 15px 20px;
}

.ozet-kart.gelir { border-left-color: #27ae60; }
.ozet-kart.gider { border-left-color: #c0392b; }
.ozet-kart.bakiye { border-left-color: #2980b9; }

.ozet-baslik {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.ozet-tutar {
    font-size: 22px;
    font-weight: bold;
}

.ozet-kart.gelir .ozet-tutar { color: #27ae60; }
.ozet-kart.gider .ozet-tutar { color: #c0392b; }
.ozet-kart.bakiye .ozet-tutar { color: #2980b9; }

.form-satir {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.form-satir label {
    flex: 1;
    min-width: 150px;
    display: block;
    font-size: 14px;
    color: #555;
}

.form-satir input,
.form-satir select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.form-satir input:focus,
.form-satir select:focus {
    outline: none;
    border-color: #2980b9;
}

.form-butonlar {
    margin-top: 10px;
}

.btn {
    padding: 8px 18px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-primary {
    background-color: #2980b9;
    color: white;
}
.btn-primary:hover { background-color: #21618c; }

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}
.btn-secondary:hover { background-color: #7f8c8d; }

.btn-success {
    background-color: #27ae60;
    color: white;
}
.btn-success:hover { background-color: #1e8449; }

.btn-danger {
    background-color: #c0392b;
    color: white;
}
.btn-danger:hover { background-color: #922b21; }

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table th {
    background-color: #f9f9f9;
    color: #555;
    font-weight: bold;
}

table tbody tr:hover {
    background-color: #fafafa;
}

table .sag { text-align: right; }
table .orta { text-align: center; }

.tutar-gelir { color: #27ae60; font-weight: bold; }
.tutar-gider { color: #c0392b; font-weight: bold; }

.etiket {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: white;
}
.etiket.gelir { background-color: #27ae60; }
.etiket.gider { background-color: #c0392b; }

.bos-mesaj {
    text-align: center;
    color: #888;
    padding: 30px;
    background-color: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .form-satir {
        flex-direction: column;
        gap: 10px;
    }

    table th,
    table td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .ozet-tutar {
        font-size: 18px;
    }
}
