/* style.css */
:root {
    --bg-color: #0b0f19;
    --card-bg: #141b2d;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-purple: #7c3aed;
    --online-green: #10b981;
    --offline-red: #ef4444;
    --warning-orange: #f59e0b;
    --border-color: #1f2937;
    --input-bg: #1f2937;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 15px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Header & Menu Navigazione Mobile-First */
.navbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.1);
}

/* Moduli e Form Universali */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

input, select, textarea {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

button {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover { opacity: 0.9; }

/* HoneyPot Invisibile Anti-Bot */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

/* Tabelle responsive e liste */
.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

th, td {
    padding: 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

th { background: rgba(255,255,255,0.01); color: var(--text-muted); font-weight: 600; }

/* Media Queries per schermi più grandi (Desktop adaptation) */
@media (min-width: 768px) {
    body { padding: 40px 20px; }
    .navbar { flex-direction: row; justify-content: space-between; align-items: center; }
    form { padding: 30px; }
}