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

/* ===== SUNUCU DURUM GÖSTERGESİ ===== */
#nf-server-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', sans-serif;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: border-color 0.4s;
    user-select: none;
    cursor: default;
}

#nf-server-status.online {
    border-color: rgba(16, 185, 129, 0.6);
}

#nf-server-status.offline {
    border-color: rgba(239, 68, 68, 0.7);
}

#nf-server-led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6B7280;
    flex-shrink: 0;
    transition: background 0.3s;
}

#nf-server-status.online #nf-server-led {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: nf-pulse 2s infinite;
}

#nf-server-status.offline #nf-server-led {
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

@keyframes nf-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}


:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --accent: #10B981;
    --danger: #EF4444;
}

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

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1E1B4B 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Glassmorphism Logic */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-box {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.forgot-link {
    display: block;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: white;
}

#forgotSection {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 260px;
    height: 100vh;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 40px;
}

.nav-item {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(79, 70, 229, 0.15);
    color: white;
}

.nav-item.active {
    border-left: 3px solid var(--primary);
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.recent-activity {
    padding: 30px;
}

.recent-activity h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table th {
    color: var(--text-muted);
    font-weight: 600;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

/* AI Report Button */
.btn-ai-report {
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s;
}

.btn-ai-report:hover {
    transform: scale(1.05);
}

/* ===== MOBİL RESPONSIVE ===== */
/* Hamburger butonu */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    background: var(--primary);
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

    .dashboard-layout { flex-direction: column; }

    .sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 60px;
    }
    .sidebar.open { transform: translateX(0); }

    /* Sidebar açıkken arkayı karart */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .sidebar-backdrop.open { display: block; }

    .main-content {
        padding: 60px 16px 24px;
        width: 100%;
    }

    .header { flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
    .header h2 { font-size: 1.3rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card .value { font-size: 1.6rem; }
}