@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --card-radius: 20px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #344767;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] body {
    background-color: #1a1c23;
    color: #e2e8f0;
}

/* --- DASHBOARD (ÜST PANEL) --- */
.dashboard-summary {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .dashboard-summary {
    background: #252b3b;
    border-color: #2d3748;
}

.stat-item {
    border-right: 1px solid #eee;
    padding: 0 20px;
}
.stat-item:last-child { border-right: none; }
[data-bs-theme="dark"] .stat-item { border-right-color: #4a5568; }

.stat-label { font-size: 0.85rem; color: #a0aec0; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #2d3748; margin-top: 5px; }
[data-bs-theme="dark"] .stat-value { color: #fff; }

/* --- KREDİ KARTI TASARIMI --- */
.fintech-card {
    position: relative;
    width: 100%;
    min-height: 240px;
    border-radius: var(--card-radius);
    overflow: hidden;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: #2d3748; /* Resim yüklenmezse varsayılan */
}

.fintech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Arkaplan Resmi */
.card-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.5s ease;
}
.fintech-card:hover .card-bg-img { transform: scale(1.25); }

/* Glassmorphism Overlay (Buzlu Cam) */
.card-glass-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Kart İçeriği */
.card-body-content {
    position: relative; z-index: 2;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Çip ve Temassız */
.card-chip {
    width: 40px; height: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #f9e29a 50%, #d4af37 100%);
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.2);
}
.card-chip::after {
    content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: rgba(0,0,0,0.2);
}
.contactless-icon { font-size: 24px; opacity: 0.2; }

/* Kart Bilgileri */
.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    opacity: 0.9;
}

.card-holder {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8;
}

.card-amount-big {
    font-size: 1.8rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Progress Bar */
.progress-slim {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}
.progress-bar-glow {
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
    height: 100%;
}

/* Input Alanları */
.glass-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    backdrop-filter: blur(5px);
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    outline: none;
}
.glass-input::placeholder { color: rgba(255,255,255,0.6); }

/* Aksiyon Butonları */
.btn-glass {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 0.8rem;
    transition: 0.2s;
}
.btn-glass:hover { background: white; color: #333; }

.btn-glass-primary {
    background: #007bff; border: none; color: white; border-radius: 30px; padding: 5px 15px;
}
.btn-glass-primary:hover { background: #0056b3; }

/* Silme İkonu */
.card-trash {
    position: absolute; top: 20px; right: 20px;
    color: rgba(255,255,255,0.4);
    cursor: pointer; transition: 0.3s;
    z-index: 10;
}
.card-trash:hover { color: #ff4d4d; }