/* DFTPro Tool - Unified Styles 
   File: include/dft/css/custom.css
   Status: FINAL MASTER v2 (Softer Corners, Clean Tech Navbar, Fixed Login, Optimized)
*/

/* =========================================
   1. FONTS (POPPINS - OPTIMIZED)
   ========================================= */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; src: url('../fonts/poppins-v24-latin_latin-ext-300.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; src: url('../fonts/poppins-v24-latin_latin-ext-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; src: url('../fonts/poppins-v24-latin_latin-ext-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; src: url('../fonts/poppins-v24-latin_latin-ext-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; src: url('../fonts/poppins-v24-latin_latin-ext-700.woff2') format('woff2'); font-display: swap; }

/* =========================================
   2. GLOBAL AYARLAR & PRELOADER
   ========================================= */
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #f4f6f9; 
    overflow-x: hidden; 
    color: #333;
}

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}
.loader-logo { width: 80px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }

/* =========================================
   3. NAVBAR & MENÜLER (CLEAN TECH STYLE - SOFTER CORNERS)
   ========================================= */

/* Ana Sayfa Navbar (Frontend - Beyaz/Glass) */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
    padding: 12px 0; /* Biraz daha ferahlık için padding artırıldı */
}

/* Admin Paneli Navbar (Backend - Koyu) */
/* Sadece Admin Panelinde (.sidebar-mini sınıfı olan sayfalarda) çalışır */
body.sidebar-mini .main-header {
    background-color: #0b1021 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0; /* Admin panelinde padding sıfırlanır */
}

.brand-image { width: 42px; margin-right: 12px; mix-blend-mode: multiply; }

/* --- MENÜ LİNKLERİ (Daha Yumuşak Köşeler) --- */
.main-header .nav-link {
    font-weight: 500;
    color: #666;
    margin: 0 6px;
    padding: 8px 20px !important; /* Yatay padding biraz artırıldı */
    border-radius: 12px;          /* Köşeler daha da yuvarlatıldı (8px -> 12px) */
    background: transparent;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.3px;
}

/* Hover ve Aktif Durumu */
.main-header .nav-link:hover, 
.main-header .nav-link.active {
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.06);
    transform: translateY(-1px);
    font-weight: 600;
}

/* --- NAVBAR LOGIN BUTONU (Daha Yumuşak Köşeler) --- */
/* HTML'de class="btn btn-navbar-login" olarak kullanılmalı */
.btn-navbar-login {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff !important;
    background: #007bff !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
    padding: 8px 24px !important;
    border-radius: 12px;          /* Menülerle uyumlu yuvarlaklık (6px -> 12px) */
    transition: all 0.3s ease;
    border: none;
    display: inline-flex; align-items: center; justify-content: center;
}

.btn-navbar-login:hover {
    background: #0062cc !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.btn-navbar-login i { margin-right: 8px; font-size: 0.9em; }

/* Admin Paneli reset */
body.sidebar-mini .nav-link:hover { transform: none; background: transparent; }

/* =========================================
   4. SAYFA BAŞLIKLARI & FRONTEND
   ========================================= */
.header-section { padding: 60px 0 40px 0; text-align: center; background: linear-gradient(to bottom, #fff, #f4f6f9); }
.header-icon-wrapper { display: inline-flex; justify-content: center; align-items: center; width: 80px; height: 80px; background: #e8f0fe; border-radius: 50%; margin-bottom: 20px; transition: all 0.5s ease; color: #007bff; font-size: 2.5rem; }
.header-section:hover .header-icon-wrapper { background: #007bff; color: #fff; transform: rotate(15deg); }
.header-divider { width: 60px; height: 4px; background: linear-gradient(90deg, #007bff, #6610f2); margin: 20px auto; border-radius: 2px; }

/* Kartlar */
.reseller-card { border: none; border-top: 3px solid #007bff; background: #fff; border-radius: 8px; transition: 0.3s; height: 100%; }
.reseller-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important; }
.contact-item { font-size: 0.95rem; margin-bottom: 8px; display: flex; align-items: center; color: #555; }
.contact-icon { width: 25px; text-align: center; color: #adb5bd; margin-right: 10px; font-size: 1.1rem; transition: color 0.3s; }
.reseller-card:hover .contact-icon { color: #007bff; }
.contact-item a { color: #555; text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: #007bff; }

.log-card { border: none; border-top: 3px solid #28a745; border-radius: 8px; }
.log-content { font-family: 'Segoe UI', Tahoma, sans-serif; line-height: 1.7; color: #333; font-size: 1rem; }
.log-content h1, .log-content h2, .log-content h3 { color: #007bff; margin-top: 25px; margin-bottom: 15px; font-weight: 600; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.log-content ul { padding-left: 20px; margin-bottom: 15px; }
.log-content strong { color: #d63031; }
.log-content img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin: 15px 0; }

/* Hero Section */
.hero-section { position: relative; background: linear-gradient(180deg, #0b1021 0%, #151f38 100%); color: #fff; padding: 50px 0 60px 0; overflow: hidden; perspective: 1000px; }
.tech-grid-bg { position: absolute; width: 200%; height: 200%; top: -50%; left: -50%; background-image: linear-gradient(rgba(0, 123, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 123, 255, 0.1) 1px, transparent 1px); background-size: 50px 50px; transform: perspective(500px) rotateX(60deg); animation: gridMove 20s linear infinite; opacity: 0.3; pointer-events: none; }
@keyframes gridMove { 0% { transform: perspective(500px) rotateX(60deg) translateY(0); } 100% { transform: perspective(500px) rotateX(60deg) translateY(50px); } }

/* 3D Slider */
#swipeZone { cursor: grab; }
#swipeZone:active { cursor: grabbing; }
.screen-stage { position: relative; width: 100%; max-width: 1100px; height: 380px; margin: 0 auto; transform-style: preserve-3d; display: flex; justify-content: center; align-items: center; }
.tech-screen { position: absolute; width: 60%; border-radius: 12px; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255,255,255,0.15); transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; }
.tech-screen img { width: 100%; border-radius: 12px; display: block; pointer-events: none; }
.pos-center { z-index: 10; transform: translate3d(0, 0, 0) scale(1); opacity: 1; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.pos-left { z-index: 5; transform: translate3d(-55%, 0, -150px) rotateY(25deg) scale(0.9); opacity: 0.6; filter: blur(2px) brightness(0.7); }
.pos-right { z-index: 5; transform: translate3d(55%, 0, -150px) rotateY(-25deg) scale(0.9); opacity: 0.6; filter: blur(2px) brightness(0.7); }
@media (max-width: 768px) { .screen-stage { height: 260px; } .tech-screen { width: 85%; } .pos-left { transform: translate3d(-12%, 0, -60px) scale(0.85); opacity: 0.5; } .pos-right { transform: translate3d(12%, 0, -60px) scale(0.85); opacity: 0.5; } }

/* Buttons */
.btn-glow { background: linear-gradient(90deg, #007bff, #00d2ff); border: none; color: white; padding: 12px 35px; border-radius: 50px; font-weight: 600; box-shadow: 0 0 25px rgba(0, 123, 255, 0.6); transition: all 0.3s ease; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(0, 123, 255, 0.9); color: #fff; }
.brand-badge { display: inline-block; padding: 10px 20px; background: #fff; border-radius: 30px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); font-weight: 700; color: #555; margin: 5px; }

/* =========================================
   5. AUTH & DASHBOARD (LOGIN/PANEL)
   ========================================= */
body.login-page { background: #e9ecef url('../../images/dft/pattern.png'); background-blend-mode: overlay; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 100%; max-width: 400px; margin: 0 auto; }

/* Glass Card - Genel Yapı */
.glass-card, .dashboard-glass-card {
    background: rgba(15, 23, 42, 0.65);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); color: #fff;
}
.glass-card .card-header, .dashboard-glass-card .card-header { background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.glass-card .login-card-body { color: #adb5bd; background: transparent; }

/* A. Dashboard Dark Inputs (Panel İçi) */
.form-control-dark, .glass-card .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important; 
    border-right: none !important; 
    height: 45px;
}
.glass-card .input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    border-left: none !important; 
    color: #007bff !important; 
    min-width: 45px;
}

/* B. Login Sayfası Özel Inputları (Okunabilir Beyaz Zemin) */
.login-page .input-group .form-control {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #333 !important;
    border-right: none !important; 
    height: 45px;
}
.login-page .input-group .input-group-text {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-left: none !important; 
    color: #007bff !important; 
    min-width: 45px;
}

/* Focus Efektleri */
.form-control:focus, .form-control-dark:focus, .glass-card .form-control:focus { background-color: rgba(0, 0, 0, 0.3) !important; border-color: #007bff !important; box-shadow: none; }
.login-page .input-group .form-control:focus, .login-page .input-group .input-group-text:focus { background-color: #fff !important; border-color: #007bff !important; color: #333 !important; box-shadow: none; }

.form-control-dark:read-only { opacity: 0.8; cursor: default; }

/* Buttons (Login Sayfası Form Butonu) */
.btn-login-custom { background: linear-gradient(45deg, #007bff, #0062cc); border: none; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); color: #fff; font-weight: 600; height: 45px; border-radius: 50px; transition: 0.3s; }
.btn-login-custom:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6); color: #fff; }

/* =========================================
   6. FOOTER EFEKTLERİ
   ========================================= */
.contact-capsule:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 0 15px rgba(0, 123, 255, 0.1); }
.social-icons a:hover { color: #007bff !important; transform: scale(1.2); }