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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Sfondo scuro elegante con linee geometriche */
    background: 
        linear-gradient(135deg, 
            #1e3c4c 0%, 
            #2a4a5e 30%,
            #3d5a6c 70%,
            #2c3e50 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.02) 30px,
            rgba(255, 255, 255, 0.02) 60px
        );
    background-size: cover, 100px 100px;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Effetto linee diagonali sottili */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            45deg,
            transparent 49%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 51%
        ),
        linear-gradient(
            -45deg,
            transparent 49%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 51%
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(44, 62, 80, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 4px 30px rgba(0,0,0,0.3),
        0 0 60px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header h1 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav button {
    background: rgba(52, 73, 94, 0.8);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav button:hover {
    background: rgba(149, 165, 166, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

section {
    display: none;
}

section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.hidden {
    display: none !important;
}

form {
    max-width: 400px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(52, 73, 94, 0.6);
    color: #ecf0f1;
}

input::placeholder {
    color: rgba(236, 240, 241, 0.6);
}

input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    background: rgba(52, 73, 94, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

button {
    background: rgba(52, 73, 94, 0.8);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

button:hover {
    background: rgba(149, 165, 166, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dashboard {
    margin-top: 30px;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8) 0%, rgba(44, 62, 80, 0.9) 100%);
    color: #ecf0f1;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.stat-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #bdc3c7;
    font-weight: 300;
}

.stat-card p {
    font-size: 2.5em;
    font-weight: 300;
    color: #ecf0f1;
}

.actions {
    background: rgba(52, 73, 94, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.actions h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
    font-weight: 400;
}

.actions button {
    margin: 5px;
}

.menu-studio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

#studio-content {
    background: rgba(52, 73, 94, 0.4);
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    nav button {
        display: block;
        margin: 5px 0;
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}
