/* ===== LİSANSLAMA SİSTEMİ - TAM PROFESYONEL CSS ===== */
/* Tüm Özellikler Dahil: Preloader, Toast, Modal, Animasyonlu Butonlar, Dark Mode, Responsive */

/* 1. MODERN SIFIRLAMA & DEĞİŞKENLER */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. TEMEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: var(--dark); line-height: 1.6; min-height: 100vh; overflow-x: hidden; transition: var(--transition); }

/* 3. PRELOADER */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s, visibility 0.5s; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { width: 80px; height: 80px; position: relative; }
.loader-inner { width: 100%; height: 100%; border: 5px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: var(--success); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 4. CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 5. HEADER */
.header { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); color: white; padding: 1.2rem 0; box-shadow: var(--shadow-lg); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; transition: var(--transition); }
.logo:hover { transform: translateY(-2px); }
.logo-icon { font-size: 2rem; background: var(--success); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-menu a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-sm); transition: var(--transition); position: relative; overflow: hidden; }
.nav-menu a:hover { color: white; background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--success); transition: var(--transition); transform: translateX(-50%); }
.nav-menu a:hover::after { width: 80%; }

/* 6. HERO */
.hero { padding: 5rem 0 3rem; text-align: center; }
.hero-title { font-size: 3.2rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.3rem; color: var(--gray); max-width: 700px; margin: 0 auto 2.5rem; }

/* 7. KART */
.card { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); margin-bottom: 2rem; transition: var(--transition); border: 1px solid rgba(255,255,255,0.2); overflow: hidden; position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary), var(--success)); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-light); }
.card-title { font-size: 1.5rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.card-icon { font-size: 1.8rem; }

/* 8. ÖZELLİK KUTULARI */
.feature-box { background: #f8faff; padding: 1.5rem; border-radius: var(--radius-md); transition: var(--transition); }
.feature-box i { font-size: 2rem; margin-bottom: 1rem; display: block; }
.feature-box h3 { margin-bottom: 0.8rem; color: var(--dark); }
.feature-box.primary i { color: #4361ee; }
.feature-box.danger i { color: #f72585; }
.feature-box.success i { color: #4cc9f0; }

/* 9. TEMEL BUTON */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition); text-decoration: none; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.3); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.btn:hover::before { width: 300px; height: 300px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3); }
.btn-success { background: linear-gradient(135deg, #4cc9f0, #4895ef); color: white; }
.btn-danger { background: linear-gradient(135deg, #f72585, #b5179e); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* 10. ANİMASYONLU BUTONLAR (8 ÇEŞİT) */
.btn-glow { animation: glowEffect 2s infinite alternate; }
@keyframes glowEffect { 0% { box-shadow: 0 0 10px currentColor; } 100% { box-shadow: 0 0 30px currentColor, 0 0 40px currentColor; } }
.btn-pulse { animation: pulseEffect 1.5s infinite; }
@keyframes pulseEffect { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.btn-shake:hover { animation: shakeEffect 0.5s; }
@keyframes shakeEffect { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.btn-gradient { background-size: 300% 300%; background-image: linear-gradient(45deg, #4361ee, #3a0ca3, #7209b7, #f72585, #4361ee); animation: gradientMove 4s linear infinite; color: white; border: none; }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.btn-3d { position: relative; border: none; transform-style: preserve-3d; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 -4px 0 rgba(0,0,0,0.2); }
.btn-3d:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3), inset 0 -4px 0 rgba(0,0,0,0.2); }
.btn-neon { background: transparent; border: 2px solid; position: relative; overflow: hidden; z-index: 1; }
.btn-neon::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.7s; z-index: -1; }
.btn-neon:hover::before { left: 100%; }
.btn-float { animation: floatEffect 3s ease-in-out infinite; }
@keyframes floatEffect { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.btn-loading { position: relative; overflow: hidden; }
.btn-loading::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: loadingSlide 1.5s infinite; }
@keyframes loadingSlide { 0% { left: -100%; } 100% { left: 100%; } }

/* 11. TOAST MESAJLARI */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9998; display: flex; flex-direction: column; gap: 10px; max-width: 350px; }
.toast { background: white; border-radius: var(--radius-md); padding: 1rem 1.2rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; transform: translateX(400px); opacity: 0; transition: transform 0.4s, opacity 0.4s; border-left: 5px solid; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--primary); }
.toast-icon { font-size: 1.5rem; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--primary); }
.toast-close { margin-left: auto; background: none; border: none; color: var(--gray); cursor: pointer; font-size: 1.2rem; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.toast-close:hover { background: var(--gray-light); color: var(--dark); }

/* 12. MODAL POPUP */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 9997; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; backdrop-filter: blur(5px); }
.modal.show { opacity: 1; visibility: visible; }
.modal-content { background: white; border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; transform: scale(0.9); opacity: 0; transition: transform 0.3s, opacity 0.3s; box-shadow: var(--shadow-lg); }
.modal.show .modal-content { transform: scale(1); opacity: 1; }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--gray); cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--gray-light); color: var(--dark); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.5rem; border-top: 1px solid var(--gray-light); display: flex; justify-content: flex-end; gap: 10px; }

/* 13. İLERİ SEVİYE TABLO */
.advanced-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.advanced-table th { background: linear-gradient(135deg, var(--dark), #16213e); color: white; padding: 1rem; text-align: left; font-weight: 600; position: sticky; top: 0; }
.advanced-table td { padding: 1rem; border-bottom: 1px solid var(--gray-light); transition: var(--transition); }
.advanced-table tr { transition: var(--transition); }
.advanced-table tr:hover { background: rgba(67, 97, 238, 0.05); }
.advanced-table .actions { display: flex; gap: 8px; }
.advanced-table .action-btn { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 5px; }

/* 14. BASİT TABLO */
.table-responsive { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.license-table { width: 100%; border-collapse: separate; border-spacing: 0; background: white; }
.license-table th { background: linear-gradient(135deg, var(--dark), #16213e); color: white; padding: 18px 20px; text-align: left; font-weight: 700; font-size: 1rem; position: sticky; top: 0; }
.license-table td { padding: 18px 20px; border-bottom: 1px solid var(--gray-light); }
.license-table tr:hover { background: rgba(67, 97, 238, 0.05); transform: scale(1.002); }
.license-table tr:nth-child(even) { background: #fafbff; }

/* 15. DURUM BADGELERİ */
.status-badge { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; gap: 8px; }
.status-badge::before { content: ''; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-active { background: rgba(76, 201, 240, 0.15); color: #4cc9f0; }
.status-active::before { background: #4cc9f0; animation: pulse 2s infinite; }
.status-expired { background: rgba(247, 37, 133, 0.15); color: #f72585; }
.status-expired::before { background: #f72585; }
.status-pending { background: rgba(248, 150, 30, 0.15); color: #f8961e; }
.status-pending::before { background: #f8961e; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* 16. FORM */
.form-group { margin-bottom: 1.8rem; }
.form-label { display: block; margin-bottom: 0.8rem; font-weight: 700; color: var(--dark); font-size: 1.05rem; }
.form-control { width: 100%; padding: 16px 20px; border: 2px solid var(--gray-light); border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition); background: white; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15); transform: translateY(-2px); }

/* 17. FOOTER */
.footer { background: var(--dark); color: white; padding: 3rem 0 2rem; margin-top: 5rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary), var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* 18. DARK MODE */
body.dark-mode { background: linear-gradient(135deg, #0a0a15, #1a1a2e, #0f0c29); color: #cccccc; }
body.dark-mode .header { background: linear-gradient(135deg, #0f0c29, #1a1a2e); }
body.dark-mode .card { background: rgba(20, 20, 35, 0.95); border-color: rgba(255,255,255,0.1); color: #cccccc; }
body.dark-mode .card-title { color: #ffffff; }
body.dark-mode .hero-title { background: linear-gradient(135deg, #a6e4ff, #b8b8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.dark-mode .hero-subtitle { color: #aaaaaa; }
body.dark-mode .nav-menu a { color: rgba(255,255,255,0.85); }
body.dark-mode .nav-menu a:hover { color: #ffffff; background: rgba(255,255,255,0.12); }
body.dark-mode .btn-outline { border-color: rgba(255,255,255,0.3); color: #ffffff; }
body.dark-mode .btn-outline:hover { background: rgba(255,255,255,0.1); }
body.dark-mode .footer { background: #0a0a15; }
body.dark-mode .license-table, body.dark-mode .advanced-table { background: rgba(20, 20, 35, 0.95); }
body.dark-mode .license-table th, body.dark-mode .advanced-table th { background: linear-gradient(135deg, #0f0c29, #1a1a2e); }
body.dark-mode .license-table td, body.dark-mode .advanced-table td { color: #cccccc; border-color: rgba(255,255,255,0.1); }
body.dark-mode .license-table tr:nth-child(even), body.dark-mode .advanced-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
body.dark-mode .license-table tr:hover, body.dark-mode .advanced-table tr:hover { background: rgba(67, 97, 238, 0.15); }
body.dark-mode .form-control { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: #cccccc; }
body.dark-mode .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.3); }
body.dark-mode .form-label { color: #dddddd; }
body.dark-mode .status-active { background: rgba(76, 201, 240, 0.25); color: #a6e4ff; }
body.dark-mode .status-expired { background: rgba(247, 37, 133, 0.25); color: #ff9acd; }
body.dark-mode .status-pending { background: rgba(248, 150, 30, 0.25); color: #ffd19a; }
body.dark-mode .feature-box { background: rgba(40, 40, 60, 0.7); color: #cccccc; border: 1px solid rgba(255,255,255,0.1); }
body.dark-mode .feature-box h3 { color: #ffffff; }
body.dark-mode .feature-box p { color: #aaaaaa; }
body.dark-mode .feature-box.primary i { color: #a6b4ff; }
body.dark-mode .feature-box.danger i { color: #ff9acd; }
body.dark-mode .feature-box.success i { color: #8ae2ff; }
body.dark-mode .toast { background: rgba(30, 30, 46, 0.95); color: #cccccc; border-left-color: currentColor; }
body.dark-mode .modal-content { background: rgba(30, 30, 46, 0.95); color: #cccccc; }
body.dark-mode .modal-header { border-bottom-color: rgba(255,255,255,0.1); }
body.dark-mode .modal-footer { border-top-color: rgba(255,255,255,0.1); }

/* 19. DARK MODE TOGGLE BUTONU */
.dark-mode-toggle { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; color: white; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.dark-mode-toggle:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4); }
.dark-mode-toggle .sun { display: block; }
.dark-mode-toggle .moon { display: none; }
body.dark-mode .dark-mode-toggle .sun { display: none; }
body.dark-mode .dark-mode-toggle .moon { display: block; }

/* 20. RESPONSIVE TASARIM */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .nav-menu { gap: 1rem; }
    .nav-menu a { padding: 8px 14px; font-size: 0.95rem; }
    .toast-container { max-width: 300px; }
}
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1.5rem; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; padding: 0 15px; }
    .card { padding: 1.5rem; }
    .license-table, .advanced-table { font-size: 0.9rem; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .modal-content { width: 95%; }
}
@media (max-width: 480px) {
    .hero { padding: 3rem 0 2rem; }
    .hero-title { font-size: 1.8rem; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .footer-content { grid-template-columns: 1fr; }
    .toast-container { top: 10px; right: 10px; left: 10px; max-width: none; }
}

/* 21. UTILITY CLASSES */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.w-100 { width: 100%; }

/* 22. ANİMASYON */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out; }