/* Gelir-Gider Uygulaması - Modern Mobil Tasarım */

/* Genel ayarlar */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Modern kart tasarımı */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Modern buton tasarımı */
.modern-btn {
    border-radius: 15px;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 25px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Gradient arka planlar */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Sayfa arka planları - Modern temiz tasarım */
.main-body,
.login-body,
.project-select-body,
.form-body,
.reports-body,
.admin-body {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Basit header tasarımı */

/* Modern buton stilleri */
.btn-income {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    padding: 18px 25px;
    font-size: 16px;
}

.btn-income:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.btn-expense {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    padding: 18px 25px;
    font-size: 16px;
}

.btn-expense:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

/* Kalın buton stili - %30 daha kalın */
.btn-thick {
    padding: 50px 25px !important; /* 18px'den 24px'e çıkarıldı (%33 artış) */
    font-size: 18px !important; /* Biraz daha büyük font */
    font-weight: 700 !important; /* Daha kalın yazı */
}

.btn-reports {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    color: white !important;
    font-weight: 600;
    padding: 18px 25px;
    font-size: 16px;
}

.btn-reports:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white !important;
}

/* Proje butonları */
.project-btn {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white !important;
}

/* Modern form elemanları */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 15px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control-lg, .form-select-lg {
    padding: 18px 20px;
    font-size: 16px;
    border-radius: 14px;
}

/* Modern input grupları */
.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-left: none;
    font-weight: 600;
    color: #4a5568;
    border-radius: 0 12px 12px 0;
}

.input-group .form-control {
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #667eea;
    background-color: white;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    border-radius: 15px 15px 0 0 !important;
}

/* Tablolar */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    color: #495057;
}

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

/* Badge'ler */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Alert'ler */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Sayfalama */
.pagination .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    color: #007bff;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Mobil optimizasyonlar */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .btn {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .btn-lg {
        font-size: 1.2rem;
        padding: 18px 25px;
    }
    
    .form-control, .form-select {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .table th, .table td {
        padding: 8px 4px;
    }
    
    /* Mobilde butonlar tam genişlik */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Mobilde form elemanları daha büyük */
    .form-control, .form-select {
        min-height: 50px;
    }
    
    /* Mobilde kartlar daha kompakt */
    .card {
        margin-bottom: 15px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .btn {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .btn-lg {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .form-control, .form-select {
        font-size: 1rem;
        padding: 12px;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 6px 2px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .btn, .form-control, .form-select {
    animation: fadeIn 0.5s ease-out;
}

/* Özel gradient arka planlar */
.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Hover efektleri */
.btn, .card, .form-control, .form-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover, .card:hover {
    transform: translateY(-2px);
}

/* Focus durumları */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Disabled durumları */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Özel scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Print stilleri */
@media print {
    .btn, .card-header, .pagination {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background: white !important;
    }
}

/* Modern sekme stilleri */
.nav-pills .nav-link {
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #6c757d;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-bottom-color: #dee2e6;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
    color: white;
    border-bottom-color: #0056b3;
}

.nav-pills .nav-link i {
    font-size: 16px;
}

/* Kategori kartları */
.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Boş durum stilleri */
.text-center.py-5.text-muted i {
    opacity: 0.3;
}

/* Renk önizleme stilleri */
#newColorPreview, #colorPreview {
    transition: all 0.3s ease;
}

#newColorPreview:hover, #colorPreview:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Sabitlenmiş alt butonlar */
.fixed-bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Ana içerik için alt boşluk - sabitlenmiş butonlar için yer açmak */
.main-body {
    padding-bottom: 160px; /* Sabitlenmiş butonlar için yer */
}

/* Başlık butonları */
.title-button {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 50px; /* %100 radius */
    font-weight: 700;
    font-size: 18px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: default;
    user-select: none;
}

/* Gelir başlık butonu */
.title-income {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* Gider başlık butonu */
.title-expense {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* Sayfa background gradientleri - sadece başlık bölümünde */
.project-select-income-body {
    background: #f8f9fa;
    position: relative;
}

.project-select-income-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px; /* Başlık bölümü yüksekliği */
    background: linear-gradient(359deg, #f8f9fa 0%, #3CD075);
    z-index: 0;
}

.project-select-income-body .container-fluid {
    position: relative;
    z-index: 1;
}

.project-select-expense-body {
    background: #f8f9fa;
    position: relative;
}

.project-select-expense-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px; /* Başlık bölümü yüksekliği */
    background: linear-gradient(359deg, #f8f9fa 0%, #FF6B6B);
    z-index: 0;
}

.project-select-expense-body .container-fluid {
    position: relative;
    z-index: 1;
}

.form-body {
    background: #f8f9fa;
    position: relative;
}

.form-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px; /* Başlık bölümü yüksekliği */
    background: linear-gradient(359deg, #f8f9fa 0%, #3CD075);
    z-index: 0;
}

.form-body .container-fluid {
    position: relative;
    z-index: 1;
}

/* Gelir sayfası için yeşil gradient */
.add-income-body {
    background: #f8f9fa;
    position: relative;
}

.add-income-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px; /* Başlık bölümü yüksekliği */
    background: linear-gradient(359deg, #f8f9fa 0%, #3CD075);
    z-index: 0;
}

.add-income-body .container-fluid {
    position: relative;
    z-index: 1;
}

/* Gider sayfası için kırmızı gradient */
.add-expense-body {
    background: #f8f9fa;
    position: relative;
}

.add-expense-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px; /* Başlık bölümü yüksekliği */
    background: linear-gradient(359deg, #f8f9fa 0%, #FF6B6B);
    z-index: 0;
}

.add-expense-body .container-fluid {
    position: relative;
    z-index: 1;
}

/* Raporlar sayfası stilleri */
.title-reports {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Özet kartları */
.summary-card {
    border: none;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.income-card .summary-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
}

.expense-card .summary-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.2) 100%);
}

.balance-card .summary-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.2) 100%);
}

/* İşlem listesi */
.transaction-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-date {
    text-align: left;
}

.transaction-detail {
    line-height: 1.4;
}

.transaction-amount {
    font-size: 1.1rem;
}

.project-badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
}

/* Sayfalama */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #6366f1;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .summary-card {
        margin-bottom: 15px;
    }
    
    .transaction-item {
        padding: 15px;
    }
    
    .transaction-detail {
        margin-bottom: 10px;
    }
    
    .project-badge {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .badge.fs-6 {
        font-size: 0.8rem !important;
        padding: 6px 10px;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .title-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .form-control-lg, .form-select-lg {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .transaction-amount {
        font-size: 1rem;
    }
    
    .transaction-date {
        font-size: 0.9rem;
    }
    
    .transaction-detail strong {
        font-size: 0.95rem;
    }
    
    .transaction-detail small {
        font-size: 0.8rem;
    }
}
