:root {
    --yellow: #facc15;
    --red: #fca5a5;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

body { 
    background-color: #060913; 
    color: #f8fafc; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

header { width: 100%; max-width: 1100px; z-index: 10; position: relative; }

#nodeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.header { text-align: center; margin-top: 2rem; }

.header h1 { 
    font-size: 3.5rem; 
    color: #ffffff; 
    margin-bottom: 1rem; 
    font-weight: 800; 
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.header h1 span, .card h2 span, .navbar h1 span { 
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p { color: #94a3b8; font-size: 1.15rem; max-width: 650px; margin: 0 auto; line-height: 1.6; }

/* HEADER.PHP İÇİN YENİ EKLENEN STILLER */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.btn-nav {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    transition: box-shadow 0.3s ease;
}

.btn-nav:hover {
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

.card-container { 
    display: flex; 
    gap: 1.8rem; 
    margin: 3.5rem 0; 
    flex-wrap: wrap; 
    justify-content: center; 
    perspective: 1000px;
}

.card { 
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 2.2rem 1.8rem; 
    border-radius: 20px; 
    width: 100%; 
    max-width: 440px; 
    text-align: left; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); 
    transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.card-container .card { width: 300px; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    transition: left 0.6s ease;
}

.card:hover::before { left: 100%; }

.card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 25px 50px rgba(2, 132, 199, 0.25);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #38bdf8;
}

.card h2 { text-align: center; margin-bottom: 1.8rem; font-size: 2rem; color: #fff; font-weight: 800; }
.card h3 { color: #f8fafc; margin-bottom: 0.75rem; font-size: 1.3rem; font-weight: 700; }
.card p { color: #94a3b8; font-size: 0.95rem; line-height: 1.6; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; color: #94a3b8; font-weight: 600; }
.form-group input { 
    width: 100%; 
    padding: 0.8rem 1rem; 
    border-radius: 10px; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    background: rgba(15, 23, 42, 0.6); 
    color: #fff; 
    font-size: 0.95rem; 
    outline: none;
    transition: all 0.3s ease;
}
.form-group input:focus { 
    border-color: #38bdf8; 
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.actions { display: flex; gap: 1.2rem; margin-bottom: 2rem; }

.btn { 
    padding: 0.9rem 2.4rem; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-full { width: 100%; text-align: center; margin-top: 0.5rem; }

.btn-primary { 
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%); 
    color: white; 
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.7); 
}

.btn-secondary { 
    background: rgba(30, 41, 59, 0.7); 
    backdrop-filter: blur(10px);
    color: #f8fafc; 
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover { 
    background: rgba(51, 65, 85, 0.9);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
}

.badge { 
    display: inline-flex; 
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.2rem; 
    background: rgba(6, 78, 59, 0.5); 
    backdrop-filter: blur(12px);
    color: #6ee7b7; 
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 30px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}

.badge-dot {
    width: 9px;
    height: 9px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

.alert { padding: 0.85rem; border-radius: 10px; margin-bottom: 1.4rem; font-size: 0.9rem; text-align: center; font-weight: 600; }
.alert-danger { background-color: rgba(127, 29, 29, 0.7); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.alert-success { background-color: rgba(20, 83, 45, 0.7); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }

.link-text { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: #94a3b8; }
.link-text a { color: #38bdf8; text-decoration: none; font-weight: 600; }
.link-text a:hover { text-decoration: underline; }

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem; 
    border-radius: 16px; 
    margin-bottom: 2rem; 
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.navbar h1 { font-size: 1.6rem; color: #fff; font-weight: 800; }
.user-info { display: flex; align-items: center; gap: 1.2rem; }
.user-info span { color: #94a3b8; font-size: 0.95rem; }
.user-info strong { color: #f8fafc; }

.logout-btn { 
    background: rgba(239, 68, 68, 0.2); 
    color: #fca5a5; 
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 0.55rem 1.2rem; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    transition: all 0.2s ease;
}
.logout-btn:hover { background: rgba(239, 68, 68, 0.4); color: #fff; transform: translateY(-2px); }

.form-inline { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.form-inline input { 
    flex: 1; 
    min-width: 200px;
    padding: 0.85rem 1rem; 
    border-radius: 10px; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    background: rgba(15, 23, 42, 0.6); 
    color: white; 
    font-size: 0.95rem;
    outline: none;
}

.status-box { padding: 1.1rem; border-radius: 10px; display: none; margin-top: 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.status-online { background-color: rgba(6, 78, 59, 0.6); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.4); }
.status-offline { background-color: rgba(127, 29, 29, 0.6); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }

footer { position: relative; z-index: 1; color: #475569; font-size: 0.85rem; margin-top: 2rem; }

.btn-check {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.6);
}