﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #004481; /* Ana Lacivert */
    --accent: #007bff; /* Parlak Mavi (Sadece hover ve butonlar için) */
    --bg-grad: linear-gradient(135deg, #00305b 0%, #001f3f 100%);
    --text: #333;
    --white: #ffffff;
    --border: #e2e8f0;
    --dark-panel-bg: #00305b;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-grad);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    overflow: hidden;
    font-size: 13px;
}

/* HEADER */
.app-header {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 0 25px;
    height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.logo-area {
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
}

/* --- DÜZEN --- */
.dashboard-container {
    flex: 1;
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 55px);
}

/* SOL PANEL */
.left-panel {
    background: #f8f9fa;
    padding: 20px;
    border-right: 1px solid rgba(0,0,0,0.05);
    overflow-y: auto;
    z-index: 10;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* MENÜ KARTLARI */
.menu-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    user-select: none;
    color: var(--primary);
}

    /* İKON RENGİ DÜZELTİLDİ: Accent yerine Primary (Lacivert) */
    .menu-card i {
        font-size: 24px;
        color: var(--primary); /* <-- DÜZELTME BURADA */
        margin-bottom: 8px;
        transition: color 0.3s ease;
    }

    .menu-card span {
        font-weight: 600;
        font-size: 12px;
        transition: color 0.3s ease;
        line-height: 1.3;
    }

    /* Hover durumunda parlak mavi olabilir */
    .menu-card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,123,255,0.15);
    }

        .menu-card:hover i {
            color: var(--accent);
        }

    /* AKTİF KART RENGİ DÜZELTİLDİ: Accent yerine Primary (Lacivert) */
    .menu-card.active {
        background: var(--primary); /* <-- DÜZELTME BURADA */
        border-color: var(--primary); /* <-- DÜZELTME BURADA */
        box-shadow: 0 6px 15px rgba(0, 68, 129, 0.3); /* Gölge rengi laciverte uyarlandı */
    }

        .menu-card.active i, .menu-card.active span {
            color: white !important;
        }

    .menu-card.full {
        grid-column: span 2;
        min-height: 60px;
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }

        .menu-card.full i {
            margin-bottom: 0;
            font-size: 20px;
        }


/* SAĞ PANEL */
.right-panel {
    background: var(--dark-panel-bg);
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* DÜZELTME: CENTER yerine SOLA DAYA (flex-start) */
}

/* FORM KARTI */
.form-container {
    display: none;
    width: 100%;
    max-width: 600px;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s;
    margin-bottom: 25px;
}

h2.form-title {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 22px;
    text-align: center;
    font-weight: 700;
}

p.form-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

/* Inputlar */
label {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
}

select, input[type="text"] {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    box-sizing: border-box;
    margin-bottom: 20px;
    color: #333;
    transition: 0.3s;
}

    select:focus, input:focus {
        border-color: var(--accent);
        background: white;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    }

.input-wrapper {
    position: relative;
}

.action-icon {
    position: absolute;
    right: 15px;
    top: 40px;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

    .action-icon:hover {
        color: var(--accent);
        transform: scale(1.1);
    }

/* SONUÇ KARTI */
#resultArea {
    width: 100%;
    max-width: 600px;
    margin-bottom: 25px;
    display: none;
}

.result-card {
    background: #f0f9ff;
    border: 2px solid #bde0fe;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.result-info-area {
    flex: 1;
    min-width: 0;
}

.result-logo-area {
    flex-shrink: 0;
    background: white;
    padding: 15px;
    border-radius: 12px;
    min-width: 200px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bank-logo {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.flag-img {
    width: 32px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.country-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

.info-value, .account-box span {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.account-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -4px;
}

.copy-btn {
    border: none;
    background: rgba(0,123,255,0.1);
    color: var(--accent);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

    .copy-btn:hover {
        background: var(--accent);
        color: white;
    }

/* Geçmiş */
.history-container {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

    .history-container h4 {
        color: rgba(255,255,255,0.7);
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 8px;
        font-weight: 500;
        font-size: 14px;
    }

.history-item {
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    font-size: 13px;
}

    .history-item:hover {
        background: rgba(255,255,255,0.2);
        transform: translateX(5px);
    }

/* Hata */
.error-box {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.report-link {
    display: block;
    margin-top: 12px;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.modal {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

    .modal h3 {
        margin-top: 0;
        color: var(--primary);
        font-size: 20px;
    }

    .modal input {
        margin-bottom: 12px;
        height: 45px;
        font-size: 14px;
    }

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: #e9ecef;
    color: #333;
}

/* Mobil */
@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }

    .left-panel {
        padding: 15px;
    }

    .right-panel {
        padding: 15px;
    }

    .result-card {
        flex-direction: column-reverse;
        text-align: center;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}