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

/* Şifre Giriş Ekranı */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #4CAF50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.login-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.login-box h1 {
    font-size: 28px;
    color: #1a237e;
    margin-bottom: 10px;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #4CAF50;
}

.login-form button {
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.login-error {
    color: #f44336;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.forgot-password {
    margin-top: 20px;
}

.forgot-password a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #1a237e;
    text-decoration: underline;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Basit */
.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    position: fixed;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
}

.nav-item:hover {
    background: #f0f0f0;
    color: #333;
}

.nav-item.active {
    background: #4CAF50;
    color: #fff;
}

.nav-icon {
    font-size: 16px;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.btn-export, .btn-import {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
}

.btn-export:hover, .btn-import:hover {
    background: #f5f5f5;
}

.btn-settings, .btn-logout {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: #E3F2FD;
    border-color: #1976D2;
    color: #1976D2;
}

.btn-logout {
    border-color: #ffcdd2;
    color: #c62828;
}

.btn-logout:hover {
    background: #ffebee;
}

/* Ana İçerik */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 30px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 180px;
}

.current-date-display {
    background: #4CAF50;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.btn-add {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-add:hover {
    background: #45a049;
}

.btn-add-item {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-add-item:hover {
    background: #1976D2;
}

/* Toplam ve Hedef Kutuları */
.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.summary-card {
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-card.target {
    border-color: #FF9800;
}

.summary-card.diff {
    border-color: #2196F3;
}

.card-icon {
    font-size: 35px;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.card-value {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

.target-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-input {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    width: 140px;
    padding: 8px 10px;
}

.target-input:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 2px rgba(255,152,0,0.2);
}

.target-input::placeholder {
    color: #bbb;
}

.btn-save-target {
    background: #FF9800;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-target:hover {
    background: #F57C00;
}

/* Ev İlerleme Göstergesi */
.house-progress-container {
    background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.house-scene {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.house-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.house-info {
    text-align: center;
    padding: 20px;
}

.house-percent-big {
    font-size: 64px;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.house-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.house-motivation {
    font-size: 16px;
    color: #666;
    font-style: italic;
    padding: 10px 20px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    display: inline-block;
}

/* Grafik */
.charts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.chart-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chart-box.small {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

/* Kategori Özeti */
.category-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 280px;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-row:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.category-row .cat-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-row .cat-name {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-row .cat-percent {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.category-row .cat-value {
    font-weight: 700;
    color: #1565C0;
    font-size: 15px;
    font-family: 'Segoe UI', monospace;
}

.category-row.emtia { border-left-color: #FF9800; background: linear-gradient(135deg, #fff8e1 0%, #fff 100%); }
.category-row.hisse { border-left-color: #4CAF50; background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%); }
.category-row.abd-hisse { border-left-color: #2196F3; background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%); }
.category-row.doviz { border-left-color: #9C27B0; background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%); }
.category-row.kripto { border-left-color: #F44336; background: linear-gradient(135deg, #ffebee 0%, #fff 100%); }
.category-row.nakit { border-left-color: #607D8B; background: linear-gradient(135deg, #eceff1 0%, #fff 100%); }
.category-row.fon { border-left-color: #795548; background: linear-gradient(135deg, #efebe9 0%, #fff 100%); }

.chart-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Tablolar */
.table-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.table-header-row h3 {
    font-size: 18px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.btn-save-all {
    background: #FF9800;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-save-all:hover {
    background: #F57C00;
}

.table-footer-actions {
    padding: 15px 20px;
    background: #fafafa;
    text-align: center;
}

.btn-save-all-bottom {
    background: #FF9800;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.btn-save-all-bottom:hover {
    background: #F57C00;
}

/* Fiyat Input */
.editable-table .price-input {
    width: 110px;
    padding: 8px 10px;
    border: 2px solid #2196F3;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    background: #E3F2FD;
}

.editable-table .price-input:focus {
    outline: none;
    background: #fff;
}

.editable-table .price-input.changed {
    background: #FFF9C4;
    border-color: #FF9800;
}

/* Tablo */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f5f5f5;
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

.data-table .total-row td {
    background: #E8F5E9;
    font-weight: 700;
    font-size: 15px;
    border-top: 2px solid #4CAF50;
}

.positive {
    color: #4CAF50 !important;
    font-weight: 600;
}

.negative {
    color: #f44336 !important;
    font-weight: 600;
}

/* Kategori Etiketleri */
.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.category-badge.hisse { background: #E3F2FD; color: #1565C0; }
.category-badge.abd, .category-badge[class*="abd hisse"] { background: #E0F7FA; color: #00838F; }
.category-badge.emtia { background: #FFF8E1; color: #FF8F00; }
.category-badge.doviz { background: #E8F5E9; color: #2E7D32; }
.category-badge.kripto { background: #FCE4EC; color: #C2185B; }
.category-badge.nakit { background: #E8EAF6; color: #3949AB; }
.category-badge.fon { background: #F3E5F5; color: #7B1FA2; }

/* Butonlar */
.btn-edit, .btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
}

.btn-edit {
    background: #2196F3;
    color: #fff;
}

.btn-edit:hover {
    background: #1976D2;
}

.btn-delete {
    background: #f44336;
    color: #fff;
}

.btn-delete:hover {
    background: #d32f2f;
}

/* Karşılaştırma */
.compare-selectors {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.compare-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-width: 220px;
}

.compare-box label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.compare-box .date-select {
    width: 100%;
    margin-bottom: 10px;
}

.compare-total {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.compare-arrow {
    font-size: 30px;
    color: #999;
}

.compare-result {
    background: #4CAF50;
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    min-width: 180px;
    text-align: center;
}

.compare-result label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.compare-diff {
    font-size: 24px;
    font-weight: 700;
}

.compare-percent {
    font-size: 14px;
    margin-top: 5px;
}

/* Karşılaştırma Özet Kutuları */
.compare-highlights {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.highlight-box {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.highlight-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.highlight-box.gainers h4 { color: #2E7D32; border-color: #C8E6C9; }
.highlight-box.losers h4 { color: #C62828; border-color: #FFCDD2; }
.highlight-box.categories h4 { color: #1565C0; border-color: #BBDEFB; }

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.highlight-item:hover {
    transform: translateX(4px);
}

.highlight-item .item-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.highlight-item .item-category {
    font-size: 11px;
    color: #888;
}

.highlight-item .item-change {
    text-align: right;
}

.highlight-item .item-percent {
    font-weight: 700;
    font-size: 14px;
}

.highlight-item .item-value {
    font-size: 11px;
    color: #666;
}

.highlight-item.positive .item-percent { color: #2E7D32; }
.highlight-item.negative .item-percent { color: #C62828; }

.highlight-item.positive { border-left: 4px solid #4CAF50; }
.highlight-item.negative { border-left: 4px solid #F44336; }

/* Geçmiş */
.history-chart-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

/* Gelir Gider */
.gelir-gider-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.gg-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 25px;
    min-width: 180px;
}

.gg-card.gelir {
    border-left: 4px solid #4CAF50;
}

.gg-card.gider {
    border-left: 4px solid #f44336;
}

.gg-card.net {
    border-left: 4px solid #2196F3;
}

.gg-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Gelir/Gider Grafik */
.gg-chart-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gg-chart-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.gg-chart-container canvas {
    max-height: 300px;
}

/* Ay başlıkları */
.ay-header {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
}

.ay-header td {
    padding: 12px 15px !important;
    font-size: 14px;
    border-bottom: 2px solid #1976D2 !important;
}

.ay-header td:first-child {
    font-size: 15px;
}

.ay-header .positive {
    color: #2E7D32;
    font-weight: 600;
}

.ay-header .negative {
    color: #C62828;
    font-weight: 600;
}

.gg-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.modal-wide {
    max-width: 700px;
}

/* Kategori Yönetimi */
.kategori-columns {
    display: flex;
    gap: 30px;
}

.kategori-column {
    flex: 1;
}

.kategori-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.kategori-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.kategori-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #1976D2;
}

.kategori-column:first-child .kategori-item {
    border-left-color: #4CAF50;
}

.kategori-column:last-child .kategori-item {
    border-left-color: #f44336;
}

.kategori-item span {
    font-size: 14px;
    color: #333;
}

.kategori-item .btn-delete-small {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
    transition: color 0.2s;
}

.kategori-item .btn-delete-small:hover {
    color: #f44336;
}

.kategori-add {
    display: flex;
    gap: 8px;
}

.kategori-add input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.kategori-add input:focus {
    outline: none;
    border-color: #1976D2;
}

.btn-add-small {
    background: #1976D2;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-small:hover {
    background: #1565C0;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    background: #eee;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    padding: 12px 25px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-save {
    padding: 12px 25px;
    border: none;
    background: #4CAF50;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-save:hover {
    background: #45a049;
}

/* Mobil */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .compare-selectors {
        flex-direction: column;
    }
    
    .compare-arrow {
        transform: rotate(90deg);
    }
}
