body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

/* ─── Login Ekranı ─── */
.login-container {
    width: 100%;
    max-width: 360px;
    margin: 80px auto 0;
    background: #fff;
    padding: 32px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.login-container h1,
.login-container h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: #1a1a2e;
}
.login-container .form-group {
    margin-bottom: 14px;
}
.login-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}
.login-container input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
}
.login-container input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.12);
}
.login-container button[type="submit"] {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.login-container button[type="submit"]:hover { background: #1565c0; }
.error-message {
    margin-top: 12px;
    font-size: 0.88rem;
    color: #c62828;
    text-align: center;
    font-weight: 600;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #1976d2;
    color: #1976d2;
    font-size: 1.2rem;
    text-decoration: none;
    background: #fff;
    transition: background .18s, color .18s;
    line-height: 1;
}
.back-btn:hover {
    background: #1976d2;
    color: #fff;
}

/* ─── Üst Bar (başlık + çıkış) ─── */
.user-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.user-top-bar h1 { margin: 0; }

.logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #e53935;
    color: #e53935;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: background .18s, color .18s;
    cursor: pointer;
    white-space: nowrap;
}
.logout-btn:hover { background: #e53935; color: #fff; }

h1, h2, h3 {
    color: #333;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #5cb85c;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

.tab {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

/* ─── Veri Görünüm Sekmeleri ─── */
.view-tab-header {
    display: flex;
    gap: 8px;
    margin: 16px 0 0;
    border-bottom: 2px solid #e0e0e0;
}
.view-tab-btn {
    padding: 10px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: color .2s, border-color .2s, background .2s;
    margin-bottom: -2px;
}
.view-tab-btn:hover { color: #fff; background: #1976d2; border-bottom-color: #1976d2; }
.view-tab-btn.active { color: #1976d2; border-bottom-color: #1976d2; background: none; }
.view-tab-content { padding-top: 4px; }

.tab button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
}

.tab button:hover {
    background-color: #0056b3;
}

.data-display {
    margin-top: 20px;
}

/* ─── Kart Seçim Izgarası ─── */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.select-card {
    background: #1976d2;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: background 0.15s, transform 0.1s;
    user-select: none;
}

.select-card:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.select-card:active {
    transform: scale(0.96);
}

/* ─── Özet Kartları ─── */
.summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
}

.summary-card {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #fff;
}
.summary-card strong { font-size: 1.2rem; }
.summary-card.income  { background: #2e7d32; }
.summary-card.expense { background: #c62828; }
.summary-card.cash    { background: #1565c0; }
.summary-card.carry   { background: #6a1b9a; }

/* ─── Veri Tablosu ─── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.data-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    background: #1976d2;
    color: #fff;
    padding: 9px 12px;
    text-align: center;
    white-space: nowrap;
}
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f5f5f5; }

/* Mobilde "Daire" kolonu gizle, "Not" wrap text yapsın, padding küçült */
@media (max-width: 600px) {
    .data-table th,
    .data-table td {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
    .col-daire { display: none; }
    .col-note {
        white-space: normal;
        word-break: break-word;
        max-width: 120px;
    }
}
.data-table th {
    background: #1976d2;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
}
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f5f5f5; }