/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.app-container {
    max-width: 414px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Stiller */
.app-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px 16px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-section .material-icons {
    font-size: 28px;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.current-time {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Ana İçerik */
.app-main {
    padding: 20px 16px 80px;
    min-height: calc(100vh - 140px);
}

/* Kart Stiller */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.bank-logo {
    text-align: center;
    margin-bottom: 20px;
}

.bank-logo .material-icons {
    font-size: 48px;
    color: #1976d2;
    background: #e3f2fd;
    padding: 12px;
    border-radius: 50%;
}

.balance-section {
    text-align: center;
    margin-bottom: 24px;
}

.balance-label {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 40px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 4px;
}

.balance-currency {
    font-size: 16px;
    color: #666;
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.stat-card.income {
    border-left: 4px solid #4caf50;
}

.stat-card.expense {
    border-left: 4px solid #f44336;
}

.stat-icon {
    margin-bottom: 10px;
}

.stat-icon .material-icons {
    font-size: 24px;
    color: #4caf50;
}

.stat-card.expense .stat-icon .material-icons {
    color: #f44336;
}

.stat-label {
    font-size: 17px;
    color: #666;
    margin-bottom: 4px;
}

.stat-amount {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

/* Menü Stiller */
.menu-section {
    margin-bottom: 24px;
}

.menu-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Swipe Container */
.swipe-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.swipe-content {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: #ffc107;
    z-index: 1;
    padding: 0 20px;
}

.receipt-btn {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.3s ease;
}


.receipt-btn .material-icons {
    font-size: 16px;
}

/* Swipe states */
.swipe-container.swiped .swipe-content {
    transform: translateX(-100px);
}

.swipe-container.swiping .swipe-content {
    transition: none;
}

.menu-icon {
    margin-right: 16px;
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon .material-icons {
    font-size: 20px;
    color: #1976d2;
}

.menu-text {
    font-size: 16px;
    font-weight: 500;
}

/* Profil Stiller */
.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar .material-icons {
    font-size: 40px;
    color: #1976d2;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-icon {
    margin-right: 12px;
    color: #1976d2;
}

.info-text {
    font-size: 14px;
    color: #666;
}

/* Form Stiller */
.form-section {
    margin-bottom: 24px;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Alt Navigasyon */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item:hover,
.nav-item.active {
    color: #1976d2;
    background: #e3f2fd;
}

.nav-item .material-icons {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .user-info {
        text-align: center;
    }
    
    .balance-amount {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-label {
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .app-main {
        padding: 16px 12px 80px;
    }
    
    .card {
        padding: 16px;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .menu-item {
        padding: 12px;
    }
    
    .menu-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .menu-text {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .logo-section h1 {
        font-size: 20px;
    }
    
    .balance-amount {
        font-size: 22px;
    }
    
    .stat-amount {
        font-size: 16px;
    }
    
    .bottom-nav {
        padding: 6px 0;
    }
    
    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .nav-item .material-icons {
        font-size: 18px;
    }
    
    .nav-label {
        font-size: 8px;
    }
}
