/* =========================================
   KEMEX KURUMSAL TASARIM SİSTEMİ (FULL)
   ========================================= */

/* --- 1. DEĞİŞKENLER VE RENK PALETİ --- */
:root {
    /* LOGODAN GELEN ANA RENKLER */
    --primary-color: #1979B3;       /* KEMEX Mavisi */
    --secondary-color: #27869E;     /* KEMEX Turkuazı */
    --accent-color: #C79248;        /* KEMEX Altın Sarısı */
    --success-color: #66A672;       /* KEMEX Yeşili */
    
    /* UI ve METİN RENKLERİ */
    --text-color: #2C3E50;          /* Koyu Gri/Lacivert */
    --text-light: #7F8C8D;          /* Açık Gri Metinler */
    --light-bg: #FAFBFC;            /* Kırık Beyaz Zemin */
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --error-color: #E74C3C;         /* Hata Kırmızısı */

    /* YAPISAL AYARLAR */
    --font-family: 'Inter', sans-serif;
    --container-width: 1140px;
    --transition: all 0.3s ease;
    --shadow-soft: 0 5px 15px rgba(25, 121, 179, 0.08);
}

/* --- 2. TEMEL SIFIRLAMA VE BODY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
}

/* MOBİL YATAY TAŞMA (OVERFLOW) KORUMASI */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- 3. UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.section { padding: 80px 0; }
.bg-light { background-color: var(--white); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }

/* --- 4. BUTONLAR --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(25, 121, 179, 0.2);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}
.btn-accent:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 8px 20px;
}
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }

.btn-text { color: var(--primary-color); background: transparent; }
.btn-text:hover { text-decoration: underline; color: var(--secondary-color); }

.btn-block { display: block; width: 100%; }

/* --- 5. HEADER & NAV --- */
.header {
    padding: 20px 0;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent-color); }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 500; color: var(--text-color); }
.nav-menu a:hover { color: var(--primary-color); }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span { width: 25px; height: 3px; background-color: var(--primary-color); }

/* --- 6. HERO SECTION --- */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F8FF 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.hero-buttons { display: flex; gap: 20px; align-items: center; }

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* --- 7. PROBLEM SECTION --- */
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.sub-heading {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.check-list { margin-top: 20px; }
.check-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.check-list.red-cross li::before {
    content: '✕';
    color: var(--error-color);
    position: absolute; left: 0; font-weight: bold;
}

.check-list.green-check li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute; left: 0; font-weight: bold;
}

.problem-image img { width: 100%; border-radius: 10px; }

/* --- 8. SOLUTION SECTION --- */
.max-w-800 { max-width: 800px; margin: 0 auto 40px auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.feature-card h3 { margin-bottom: 10px; color: var(--primary-color); }

/* --- 9. HOW IT WORKS --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px; height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; margin: 0 auto 20px auto;
}

.link-primary { color: var(--primary-color); font-weight: 600; }

/* --- 10. RESULTS SECTION --- */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.results-image img { width: 100%; border-radius: 10px; }

/* --- 11. TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.quote-icon {
    font-size: 4rem; color: #F0F0F0;
    line-height: 0; position: absolute; top: 20px; left: 20px;
}

.testimonial-card p {
    margin-top: 20px; margin-bottom: 20px;
    font-style: italic; position: relative; z-index: 1;
}

.tag {
    background-color: #EBF5FB; color: var(--primary-color);
    font-size: 0.8rem; padding: 4px 10px;
    border-radius: 20px; display: inline-block;
    margin-top: 10px; font-weight: 600;
}

/* --- 12. FORM SECTION --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.form-wrapper {
    background: var(--white); color: var(--text-color);
    padding: 40px; border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.modern-form .form-group { margin-bottom: 20px; }
.modern-form label {
    display: block; margin-bottom: 8px;
    font-weight: 600; font-size: 0.9rem; color: var(--primary-color);
}

.modern-form input, .modern-form textarea {
    width: 100%; padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px; font-family: inherit; font-size: 1rem;
    transition: var(--transition); background-color: #FAFAFA;
}
.modern-form input:focus, .modern-form textarea:focus {
    outline: none; border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(25, 121, 179, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.radio-group label {
    display: inline-flex; align-items: center; margin-right: 20px;
    font-weight: 400; cursor: pointer;
}
.radio-group input { width: auto; margin-right: 5px; }

/* --- 13. FAQ --- */
.faq-list details {
    background: var(--white); margin-bottom: 15px;
    padding: 15px; border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer; border: 1px solid transparent;
}
.faq-list details:hover { border-color: var(--secondary-color); }
.faq-list summary { font-weight: 600; outline: none; color: var(--primary-color); }
.faq-list p { margin-top: 10px; color: var(--text-color); }

/* --- 14. FOOTER --- */
.footer {
    background-color: #0E1621; color: #aaa;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}

.footer h4 { color: var(--white); margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--accent-color); }

/* --- EKİP KARTLARI (İKONLU) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 40px;
}

.team-card {
    background: #ffffff; padding: 50px 30px 40px;
    border-radius: 16px; text-align: center;
    border: 1px solid #eee; transition: all 0.3s ease;
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(25, 121, 179, 0.1);
    border-color: #1979B3;
}

.member-icon-wrapper {
    width: 80px; height: 80px;
    background-color: #EBF5FB; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px auto; color: #1979B3; transition: all 0.3s ease;
}
.team-card:hover .member-icon-wrapper {
    background-color: #1979B3; color: #ffffff; transform: scale(1.1);
}

.team-card h3 {
    font-size: 1.5rem; color: #0E1621;
    margin-bottom: 10px; font-weight: 700;
}

.member-title {
    font-size: 1rem; color: #C79248;
    font-weight: 600; margin-bottom: 15px;
}
.member-desc { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* --- RESPONSIVE GENEL --- */
@media (max-width: 992px) {
    .hero-grid, .problem-grid, .results-container {
        grid-template-columns: 1fr; text-align: center;
    }
    .hero-buttons { justify-content: center; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* MOBİL NAV + OVERFLOW DÜZELTMELERİ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0E1621;
        padding: 16px 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 12px;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
    }

    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }

    .form-row, .footer-grid { grid-template-columns: 1fr; }

    /* küçük ekranlarda taşmayı bitir */
    .team-grid { grid-template-columns: 1fr; }

    .hero-content h1 { font-size: 2rem; }
}

/* =========================================
   PANEL / DASHBOARD CSS (BURADAN AŞAĞISI EKLENDİ)
   ========================================= */

.panel-body {
    background-color: var(--light-bg);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    left: 0; top: 0; z-index: 100;
    display: flex; flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    height: 70px; display: flex; align-items: center;
    padding: 0 24px; border-bottom: 1px solid var(--border-color);
}

.panel-logo {
    font-size: 1.25rem; font-weight: 800;
    color: var(--primary-color); letter-spacing: -0.5px;
}
.panel-logo span { color: var(--accent-color); }

.sidebar-nav { flex: 1; padding: 20px 0; overflow-y: auto; }
.sidebar-nav ul li { margin-bottom: 5px; }

.nav-link {
    display: flex; align-items: center; padding: 12px 24px;
    color: var(--text-color); font-weight: 500; font-size: 0.95rem;
    transition: var(--transition);
}
.nav-link i {
    width: 24px; margin-right: 10px; font-size: 1.1rem; color: var(--text-light);
}
.nav-link:hover, .nav-link.active {
    background-color: #EBF5FB; color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}
.nav-link:hover i, .nav-link.active i { color: var(--primary-color); }

.sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--border-color); }
.logout-link { color: var(--error-color); font-weight: 500; display: flex; align-items: center; gap: 10px; }

/* Main Content Area */
.main-content {
    flex: 1; margin-left: 260px;
    display: flex; flex-direction: column; width: calc(100% - 260px);
}

/* Topbar */
.topbar {
    height: 70px; background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px;
}
.toggle-sidebar { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }
.user-info { display: flex; align-items: center; gap: 15px; }
.salon-name { font-weight: 600; color: var(--primary-color); }
.user-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--accent-color);
}

/* Panel Sections */
.panel-section { padding: 30px; display: none; animation: fadeIn 0.3s ease; }
.panel-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 25px;
}
.section-title h2 { font-size: 1.5rem; color: var(--primary-color); }

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.stat-card {
    background: var(--white); padding: 24px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex; align-items: center; gap: 20px;
    border: 1px solid transparent;
}
.stat-card:hover { border-color: var(--border-color); }
.stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--white);
}

/* Panel Renkleri */
.bg-purple { background-color: var(--primary-color); }
.bg-blue { background-color: var(--secondary-color); }
.bg-green { background-color: var(--success-color); }

.stat-info h4 { font-size: 0.9rem; color: var(--text-light); margin-bottom: 5px; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--text-color); line-height: 1; }
.stat-desc { font-size: 0.8rem; color: var(--success-color); margin-top: 5px; display: block; }

/* Charts & Other Cards */
.charts-grid, .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.card, .chart-card {
    background: var(--white); padding: 24px;
    border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.chart-card h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--primary-color); }
.chart-placeholder img { width: 100%; height: auto; border-radius: 8px; }

/* Tables */
.table-card { padding: 0; overflow: hidden; }
.table-responsive { overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; }
.panel-table th {
    background-color: #F8F9FA; padding: 15px 24px; text-align: left;
    font-weight: 600; font-size: 0.85rem; color: var(--primary-color);
    border-bottom: 2px solid #EEE;
}
.panel-table td {
    padding: 15px 24px; border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem; color: var(--text-color);
}
.panel-table tr:hover { background-color: #F8FDFF; }

/* Badges & Actions */
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-new { background-color: #EBF5FB; color: var(--primary-color); }
.badge-contacted { background-color: #FFF8E1; color: #F57C00; }
.badge-success { background-color: #E8F5E9; color: var(--success-color); }

.btn-xs {
    padding: 6px 12px; font-size: 0.8rem; border: 1px solid var(--border-color);
    background: white; border-radius: 4px; cursor: pointer;
}
.btn-xs.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

.btn-icon {
    width: 32px; height: 32px; border-radius: 6px; border: none;
    background-color: #f4f6f9; color: #555; cursor: pointer; transition: var(--transition);
}
.btn-icon:hover { background-color: var(--primary-color); color: white; }
.btn-whatsapp { color: #25D366; background-color: #e6ffed; }
.btn-whatsapp:hover { background-color: #25D366; color: white; }

/* Panel Responsive */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .toggle-sidebar { display: block; }
    .charts-grid, .settings-grid { grid-template-columns: 1fr; }
}

/* Admin Panel Badges */
.admin-badge {
    background-color: var(--secondary-color); color: white;
    font-size: 0.7rem; padding: 2px 8px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-active { background-color: #e8f5e9; color: var(--success-color); border: 1px solid #c8e6c9; }
.badge-frozen { background-color: #ffebee; color: var(--error-color); border: 1px solid #ffcdd2; }
.badge-trial-status { background-color: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }

/* =========================================
   KEMEX GLOBAL BİLDİRİM (MODAL) SİSTEMİ
   ========================================= */

.custom-alert-overlay {
    display: none; /* Varsayılan gizli */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 9999;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}

.custom-alert-box {
    background: white; padding: 40px 30px; border-radius: 16px;
    text-align: center; max-width: 450px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* İkon Çemberi */
.alert-icon-circle {
    width: 70px; height: 70px; border-radius: 50%;
    margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}

/* Renk Varyasyonları */
/* BAŞARILI (YEŞİL) */
.custom-alert-box.success .alert-icon-circle { background: #E8F5E9; color: #27ae60; }
.custom-alert-box.success h3 { color: #27ae60; }

/* HATA / PASİF (KIRMIZI) */
.custom-alert-box.error .alert-icon-circle { background: #FFEBEE; color: #c0392b; }
.custom-alert-box.error h3 { color: #c0392b; }

/* UYARI (SARI) */
.custom-alert-box.warning .alert-icon-circle { background: #FFF8E1; color: #F39C12; }
.custom-alert-box.warning h3 { color: #F39C12; }

/* Metinler */
.custom-alert-box h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; }
.custom-alert-box p { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }

/* Butonlar */
.alert-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-alert-close {
    background: #1979B3; color: white; border: none;
    padding: 12px; border-radius: 8px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; width: 100%;
}
.btn-alert-close:hover { background: #156596; transform: translateY(-2px); }

/* Özel WhatsApp Butonu */
.btn-alert-whatsapp {
    background: #25D366; color: white; text-decoration: none;
    padding: 12px; border-radius: 8px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.2s; width: 100%; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-alert-whatsapp:hover { background: #128C7E; transform: translateY(-2px); }

.alert-x-close {
    position: absolute; top: 15px; right: 20px;
    font-size: 1.5rem; color: #ccc; cursor: pointer;
}
.alert-x-close:hover { color: #333; }

@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
