/* =========================================
   1. GENEL AYARLAR & DEĞİŞKENLER
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Renk Paleti */
    --primary: #4f46e5;       /* Ana Renk (İndigo) */
    --primary-dark: #4338ca;  /* Koyu İndigo (Hover) */
    --secondary: #64748b;     /* Gri Metin */
    --dark: #0f172a;          /* Koyu Başlıklar */
    --light: #f8fafc;         /* Sayfa Arkaplanı */
    --white: #ffffff;         /* Kart Arkaplanı */
    
    --success: #10b981;       /* Yeşil (Ödeme) */
    --danger: #ef4444;        /* Kırmızı (Borç) */
    --warning: #f59e0b;       /* Turuncu */
    
    --border: #e2e8f0;        /* Kenarlık Rengi */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;        /* Köşe Yuvarlaklığı */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul { list-style: none; }

/* Konteyner Yapısı */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1; /* Footer'ı aşağı iter */
}

/* =========================================
   2. HEADER & NAVİGASYON
   ========================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Cam efekti */
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links i { margin-right: 5px; }

/* Özel Buton Stili (Header İçin) */
.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* =========================================
   3. HERO BÖLÜMÜ (Ana Sayfa)
   ========================================= */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: radial-gradient(circle at top right, #e0e7ff, transparent 40%),
                radial-gradient(circle at bottom left, #e0e7ff, transparent 40%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Yazı içi gradient */
}

.hero p {
    font-size: 1.125rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Genel Butonlar */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: #e0e7ff;
}

/* Animasyon: Fade In */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. ÖZELLİKLER (Features)
   ========================================= */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: #e0e7ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-box p {
    color: var(--secondary);
}

/* =========================================
   5. DASHBOARD (Panel) STİLLERİ
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

/* Tablo Tasarımı */
.table-responsive {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    padding: 1rem;
    background-color: #f1f5f9;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.dash-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    font-size: 0.95rem;
}

.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover { background-color: #f8fafc; }

/* =========================================
   6. FORM ELEMANLARI (Giriş / Kayıt İçin)
   ========================================= */
.form-container {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* =========================================
   8. MOBİL UYUMLULUK (Responsive)
   ========================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero h1 { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-header .btn { width: 100%; }
}
/* --- FORM İKONLARI VE YENİ STİLLER --- */

/* Formun üstündeki mavi çizgi ve yuvarlaklık */
.form-container {
    border-top: 5px solid var(--primary);
    position: relative;
    overflow: hidden; /* Taşmaları engelle */
}

/* Yuvarlak Profil İkonu */
.avatar-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: #fff;
    font-size: 2.5rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

/* Input İçindeki İkonlar */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; /* Gri ikon rengi */
    font-size: 1.1rem;
    pointer-events: none; /* Tıklamayı engelle, inputa geçsin */
    transition: color 0.2s;
}

/* İkonlu Input Ayarı (Soldan boşluk bırak) */
.input-with-icon {
    padding-left: 3rem !important; /* İkon için yer aç */
}

.form-control:focus + .input-icon,
.form-control:focus ~ .input-icon {
    color: var(--primary); /* Odaklanınca ikon da renklenir */
}

/* Butonlar Arası Ayırıcı (Divider) */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px dotted #cbd5e1;
}

.form-divider:not(:empty)::before { margin-right: .5em; }
.form-divider:not(:empty)::after { margin-left: .5em; }

/* Outline (İçi Boş) Butonlar */
.btn-outline-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: #e0e7ff;
    transform: translateY(-1px);
}
/* SAYFALAMA STİLİ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.page-link:hover {
    background: #f1f5f9;
    color: #4f46e5;
}
.page-link.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}