/* ==========================================
   RESET & STILI BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
    background-color: #080b10;
    color: #00ff66;
    padding: 20px;
}

/* ==========================================
   SFONDO TECH CON RICHIAMO A SCACCHIERA
   ========================================== */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        linear-gradient(45deg, rgba(0, 212, 255, 0.03) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(0, 212, 255, 0.03) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(0, 212, 255, 0.03) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(0, 212, 255, 0.03) 75%), 
        radial-gradient(circle at 50% 50%, rgba(13, 27, 42, 0.9) 0%, rgba(8, 11, 16, 1) 100%);
    background-size: 60px 60px, 60px 60px, 60px 60px, 60px 60px, 100% 100%;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px, 0 0;
    pointer-events: none;
}

/* ==========================================
   CONTAINER PRINCIPALE (GLASSMORPHISM)
   ========================================== */
.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 40px auto;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* ==========================================
   HEADER & PULSANTI DI AZIONE
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h1 {
    font-size: 1.5rem;
    color: #00d4ff;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Pulsante Home Stile Tech */
.btn-home {
    color: #00d4ff;
    text-decoration: none;
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.05);
}

.btn-home:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    color: #ffffff;
}

.btn-home svg {
    transition: transform 0.3s ease;
}

.btn-home:hover svg {
    transform: scale(1.15);
}

/* Pulsante Logout */
.btn-logout {
    color: #ff4d4d;
    text-decoration: none;
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 77, 77, 0.2);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

/* ==========================================
   ELEMENTI CONTENUTO & LISTE
   ========================================== */
.menu-title {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 15px;
}

.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-list li a {
    display: block;
    color: #00ff66;
    text-decoration: none;
    background: rgba(0, 20, 10, 0.5);
    border: 1px solid rgba(0, 255, 102, 0.2);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.links-list li a:hover {
    background: rgba(0, 255, 102, 0.15);
    border-color: #00ff66;
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

/* ==========================================
   RESPONSIVE HEADER PER MOBILE
   ========================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    h1 {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}