@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --accent: #f43f5e;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    color-scheme: dark;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1280px;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    background-color: var(--darker);
}

body {
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

.hero h1, .hero-title {
    font-size: 4.2rem;
    line-height: 1.08;
    margin-bottom: 2rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 63, 94, 0.05) 0%, transparent 60%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
button, .btn {
    cursor: pointer;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-glow);
}

/* Navbar */
nav {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.2rem;
    }
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    position: relative;
    font-weight: 400;
    color: var(--gray);
    transition: color 0.3s ease;
}

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

/* Buton olan nav linklerin yazısı her zaman beyaz olsun */
.nav-links a.btn-primary,
#mobile-menu a.btn-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Hamburger Button */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

#hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

#hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(30px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu.open {
    display: flex;
    opacity: 1;
}

#mobile-menu a {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--light);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

#mobile-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

/* Utility Classes */
.section-padding {
    padding: 6rem 2rem;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Form Inputs */
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    color: white;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.4rem;
    display: block;
    font-weight: 500;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.badge-danger {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent);
}

.badge-info {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--light);
}

.data-table thead tr {
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    padding: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--light);
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 3px solid var(--accent);
}

.toast-error i {
    color: var(--accent);
}

.toast-info {
    border-left: 3px solid var(--primary);
}

.toast-info i {
    color: var(--primary);
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease;
}

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

/* Stat Card */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(50px);
}

.stat-card .stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.8rem 0 0.3rem;
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--gray);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab:hover, .tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    
    .nav-links {
        display: none;
    }
    
    #hamburger-btn {
        display: flex;
    }
    
    .hero h1 { 
        font-size: 2.8rem !important; 
        line-height: 1.15 !important;
    }

    .hero p {
        font-size: 1.05rem !important;
    }
    
    .section-padding {
        padding: 4rem 1rem !important;
    }

    .glass-card {
        padding: 1.5rem !important;
    }

    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th, .data-table td {
        padding: 0.6rem;
    }
    
    .toast-container {
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .form-group + .form-group {
        margin-top: 0.5rem;
    }

    .mobile-stack {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .mobile-stack > div {
        width: 100% !important;
        flex: none !important;
    }

    .hero-stats {
        gap: 1.5rem !important;
        margin-top: 3rem !important;
    }

    .hero-stats > div {
        flex: 1 1 100px;
    }

    .feature-content {
        padding: 2rem !important;
    }

    .feature-grid {
        gap: 3rem !important;
    }

    .feature-visual {
        height: 280px !important;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }

    body {
        font-size: 0.95rem;
    }

    .hero h1 { 
        font-size: 2.2rem !important; 
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.3rem !important; }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero .btn {
        padding: 1rem !important;
    }

    main {
        padding: 0 1.2rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Status dots */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
.status-dot.offline { background: var(--accent); }
.status-dot.warning { background: var(--warning); }

/* Selection color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* ─────────────────────────────────────────────────────────────
   AÇIK TEMA (html.light) — CSS Değişken Override'ları
   style.css içindeki tüm var(--xxx) kullanımları bu sayede
   light modda doğru renklere dönüşür.
──────────────────────────────────────────────────────────────── */
html.light {
    --dark:         #ffffff;               /* modal, surface */
    --darker:       #f1f5f9;               /* body, html arka planı */
    --light:        #0f172a;               /* ana metin rengi */
    --gray:         #64748b;               /* ikincil metin */
    --glass:        rgba(255,255,255,0.80);/* glass-card arka planı */
    --glass-border: rgba(0,0,0,0.09);     /* kenarlıklar */
    color-scheme: light;
}

html.light body {
    background: var(--darker) !important;
    color: var(--light) !important;
}

html.light html {
    background-color: var(--darker) !important;
}

/* Navbar & nav.scrolled */
html.light nav.scrolled {
    background: rgba(255,255,255,0.92) !important;
    border-bottom-color: rgba(0,0,0,0.08) !important;
}

/* Glass kartlar */
html.light .glass-card {
    background: var(--glass) !important;
    border-color: var(--glass-border) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
}
html.light .glass-card:hover {
    border-color: rgba(99,102,241,0.25) !important;
    box-shadow: 0 0 30px rgba(99,102,241,0.08) !important;
}

/* Butonlar */
html.light .btn-outline {
    border-color: rgba(0,0,0,0.15) !important;
    color: var(--light) !important;
}
html.light .btn-outline:hover {
    background: rgba(0,0,0,0.04) !important;
}

/* Tablolar */
html.light .data-table {
    color: var(--light) !important;
}
html.light .data-table th {
    color: var(--gray) !important;
}
html.light .data-table thead tr {
    border-bottom-color: rgba(0,0,0,0.08) !important;
}
html.light .data-table td {
    border-bottom-color: rgba(0,0,0,0.04) !important;
}
html.light .data-table tbody tr:hover {
    background: rgba(0,0,0,0.02) !important;
}

/* Toast bildirimleri */
html.light .toast {
    background: rgba(255,255,255,0.97) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: var(--light) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}

/* Modal */
html.light .modal-content {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
}
html.light .modal-overlay {
    background: rgba(0,0,0,0.30) !important;
}

/* Form inputs */
html.light .form-input {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: var(--light) !important;
}
html.light .form-input::placeholder {
    color: #94a3b8 !important;
}
html.light .form-label {
    color: var(--gray) !important;
}

/* Tabs */
html.light .tab {
    border-color: rgba(0,0,0,0.10) !important;
    color: var(--gray) !important;
}
html.light .tab:hover,
html.light .tab.active {
    background: rgba(99,102,241,0.08) !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}

/* Hamburger span */
html.light #hamburger-btn span {
    background: var(--light) !important;
}

/* Mobile menu (style.css #mobile-menu) */
html.light #mobile-menu {
    background: rgba(255,255,255,0.99) !important;
}
html.light #mobile-menu a {
    color: var(--light) !important;
}

