/* Dosya Adı: /style.css (Nihai, Tam ve Mobil Uyumlu Sürüm) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --background-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

/* ====================================================== */
/* Ana Header ve Navigasyon */
/* ====================================================== */
.main-header {
    background-color: var(--card-bg); border-bottom: 1px solid var(--border-color);
    padding: 1rem 0; position: sticky; top: 0; z-index: 1000;
}
.header-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.header-logo { text-decoration: none; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.header-nav a { text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: color 0.2s ease; }
.header-nav a:hover { color: var(--primary-color); }
.header-nav a.btn { background-color: var(--primary-color); color: white; padding: 0.5rem 1.25rem; border-radius: 0.5rem; }
.header-nav a.btn:hover { background-color: #4338CA; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* ====================================================== */
/* Panel Yerleşimi (Dashboard & Admin) */
/* ====================================================== */
.panel-wrapper { max-width: 1280px; margin: 2rem auto; padding: 0 1.5rem; }
.panel-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.panel-sidebar { align-self: start; }
.sidebar-profile { text-align: center; padding: 1.5rem; background-color: var(--card-bg); border-radius: 0.75rem; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.sidebar-profile .avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 2.5rem; font-weight: 700;
}
.sidebar-profile h4 { margin: 0; font-size: 1.125rem; color: var(--text-primary); }
.sidebar-profile p { font-size: 0.875rem; color: var(--text-secondary); margin: 0.25rem 0 0; }
.sidebar-nav { background-color: var(--card-bg); border-radius: 0.75rem; box-shadow: var(--shadow-md); padding: 0.75rem; }
.sidebar-nav ul { list-style: none; padding: 0; flex-direction: column; }
.sidebar-nav ul li a { display: flex; align-items: center; padding: 0.75rem 1rem; text-decoration: none; color: var(--text-secondary); font-weight: 500; border-radius: 0.5rem; margin-bottom: 0.25rem; transition: all 0.2s ease; }
.sidebar-nav ul li a:hover, .sidebar-nav ul li a.active { background-color: #EEF2FF; color: var(--primary-color); }
.sidebar-nav ul li a i { margin-right: 1rem; width: 20px; text-align: center; font-size: 1.125rem; }
.panel-main { animation: fadeIn 0.5s ease; }
.panel-header { margin-bottom: 1.5rem; }
.panel-header h1 { font-size: 1.875rem; color: var(--text-primary); margin: 0; }
.panel-header p { font-size: 1rem; color: var(--text-secondary); margin-top: 0.25rem; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.summary-card { background: #fff; padding: 1.5rem; border-radius: 0.75rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem; }
.summary-card i { font-size: 2rem; color: var(--primary-color); }
.summary-card span { color: var(--text-secondary); }
.summary-card strong { font-size: 1.5rem; display: block; }
.panel-card { background-color: var(--card-bg); border-radius: 0.75rem; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; overflow: hidden; }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.card-header-title { display: flex; align-items: center; gap: 1rem; }
.card-header i { font-size: 1.25rem; color: var(--primary-color); }
.card-header h2 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }
.card-header .accordion-icon { transition: transform 0.3s ease; }
.card-header.active .accordion-icon { transform: rotate(180deg); }
.card-content { padding: 1.5rem; display: none; }
.card-content.show { display: block; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
thead th { background-color: var(--background-color); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: none; }
form .form-group { margin-bottom: 1.25rem; }
form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
form input, form select { width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border-color); }
button { padding: 0.75rem 1.5rem; background-color: var(--primary-color); color: white; border: none; border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem; font-weight: 600; }
button:hover { background-color: #4338CA; }

/* ====================================================== */
/* Giriş ve Kayıt Sayfaları Stilleri (Auth Pages) */
/* ====================================================== */
.auth-page-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.auth-container { width: 100%; max-width: 450px; padding: 1.5rem; }
.auth-card { background-color: var(--card-bg); padding: 2.5rem; border-radius: 0.75rem; box-shadow: var(--shadow-md); }
.auth-title { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; }
.auth-error-message { background-color: #FEE2E2; color: #991B1B; padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; }
.auth-switch-link { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; }
.auth-switch-link a { color: var(--primary-color); font-weight: 600; }

/* ====================================================== */
/* enroll.php Premium Tasarım Stilleri */
/* ====================================================== */
.enroll-container { max-width: 900px; margin: 3rem auto; padding: 0 1.5rem; }
.enroll-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.enroll-summary { background-color: var(--card-bg); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-md); position: sticky; top: 120px; }
.enroll-summary h3, .enroll-form-section h3 { margin-top: 0; font-size: 1.25rem; color: var(--text-primary); border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.product-item { display: flex; align-items: center; gap: 1rem; }
.product-icon { font-size: 1.5rem; color: var(--primary-color); background-color: #EEF2FF; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.product-name { font-weight: 600; margin: 0; font-size: 1.1rem; }
.product-price { color: var(--text-secondary); margin: 0; }
.total-summary { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: var(--text-secondary); }
.summary-line.total { font-weight: 700; color: var(--text-primary); font-size: 1.25rem; }
.enroll-form-section { background-color: var(--card-bg); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-md); }
.form-description { color: var(--text-secondary); font-size: 0.9rem; margin-top: -1rem; margin-bottom: 1.5rem; }
.form-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); background-color: #fff; }
.confirmation-box { background-color: var(--background-color); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 1.5rem; margin-top: 2rem; }
.custom-checkbox { display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; }
.custom-checkbox input { display: none; }
.custom-checkbox .checkmark { width: 20px; height: 20px; border: 2px solid var(--border-color); background-color: #fff; border-radius: 4px; margin-right: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.custom-checkbox .checkmark .fas { display: none; color: white; font-size: 12px; }
.custom-checkbox input:checked + .checkmark { background-color: var(--primary-color); border-color: var(--primary-color); }
.custom-checkbox input:checked + .checkmark .fas { display: block; }
.btn-submit-payment {
    background: var(--primary-color); color: white; width: 100%; padding: 1rem; border: none;
    border-radius: 0.5rem; font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2); display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.btn-submit-payment:hover { background-color: #4338CA; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(79, 70, 229, 0.3); }
.btn-submit-payment:disabled { background: #D1D5DB; cursor: not-allowed; box-shadow: none; transform: none; }
.message-item { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1rem; }
.message-item:last-child { border-bottom: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ====================================================== */
/* MOBİL UYUMLULUK KODLARI (NİHAİ) */
/* ====================================================== */
@media (max-width: 992px) {
    .header-nav {
        display: none; position: absolute; top: 100%; left: 0;
        width: 100%; background-color: var(--card-bg); box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    .header-nav.active { display: block; }
    .header-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .header-nav ul li { width: 100%; }
    .header-nav ul li a { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
    .header-nav ul li:last-child a { border-bottom: none; }
    .header-nav a.btn { text-align: center; margin: 0.5rem 1.5rem; width: calc(100% - 3rem); }
    .menu-toggle { display: block; }
    .panel-grid, .enroll-grid { grid-template-columns: 1fr; }
    .panel-sidebar, .enroll-summary { position: static; margin-bottom: 2rem; }
}
@media (max-width: 768px) {
    .panel-wrapper, .header-container, .enroll-container { padding: 0 1rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
    .panel-header h1 { font-size: 1.5rem; }
    .summary-cards { grid-template-columns: 1fr; }
}