:root {
    --primary: #0A192F; 
    --accent-tech: #00D4FF; 
    --accent-eco: #00C896; 
    --text-dark: #2d3748;
    --text-light: #a0aec0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none; color: inherit; }

/* Navbar base */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; padding: 1rem 5%; background: rgba(10, 25, 47, 0.98); z-index: 1000; }
.navbar .logo { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.navbar .logo span { color: var(--accent-tech); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-item { color: var(--white); font-weight: 500; }
.btn { padding: 12px 24px; background: var(--accent-tech); color: var(--primary); font-weight: bold; border-radius: 4px; border: none; cursor: pointer; transition: var(--transition); }
.btn:hover { background: var(--white); transform: translateY(-2px); }

/* Pannelli DMS */
.dms-container { max-width: 800px; margin: 0 auto; }
.login-panel { background: var(--primary); padding: 3rem; border-radius: 8px; color: var(--white); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
#auth-error { color: #ff4d4f; margin-bottom: 1rem; font-weight: 500; font-size: 0.9rem; }

/* Tabs Registrazione/Login */
.auth-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.tab-btn { background: transparent; border: none; color: var(--text-light); font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 5px 10px; transition: var(--transition); }
.tab-btn.active { color: var(--accent-tech); border-bottom: 2px solid var(--accent-tech); }

.form-group { margin-bottom: 1.5rem; }
.form-control { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: var(--white); border-radius: 4px; }
.form-control:focus { outline: none; border-color: var(--accent-tech); }

.dashboard-panel { background: var(--white); border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); overflow: hidden; }
.dash-header { background: var(--primary); padding: 2rem; display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.role-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; border: 1px solid; text-transform: uppercase; margin-left: 10px; }
.btn-logout { background: transparent; border: 1px solid var(--white); color: var(--white); padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.btn-logout:hover { background: #ff4d4f; border-color: #ff4d4f; }
.dash-body { padding: 2rem; }
.dms-controls select { width: 100%; padding: 10px; margin-top: 5px; }
.file-upload-area { border: 2px dashed #cbd5e1; padding: 2rem; text-align: center; border-radius: 8px; margin: 2rem 0; background: #f8fafc; }
.file-list { list-style: none; }
.file-item { display: flex; justify-content: space-between; padding: 15px; border: 1px solid #e2e8f0; margin-bottom: 10px; border-radius: 4px; align-items: center; }
.btn-download { background: var(--bg-light); color: var(--primary); padding: 8px 12px; border-radius: 4px; font-size: 0.9rem; border: 1px solid #e2e8f0; }
.btn-download:hover { background: var(--primary); color: var(--white); }
.hidden { display: none !important; }