/* assets/css/style.css */

:root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --danger: #dc3545;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --bg-color: #f4f4f9;
    --text-color: #333;
    --border-color: #ddd;
}

/* Reset & Base Layout */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; }

/* Bottoni Globali */
.btn {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }

/* NAVBAR (ex header.php style) */
.navbar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}

.navbar .nav-links a {
    margin-left: 20px;
    color: #666;
    font-weight: 500;
}

.navbar .nav-links a:hover { color: var(--primary); }

.user-tag {
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
}

/* FOOTER (ex footer.php style) */
.site-footer {
    background-color: var(--dark);
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-content {
    /* MODIFICA QUI: Allinealo alla dashboard */
    max-width: 1000px; 
    
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a { color: #bdc3c7; margin-left: 15px; }
.footer-links a:hover { color: white; }

.lang-selector span { cursor: pointer; padding: 2px 5px; opacity: 0.7; }
.lang-selector span.active { opacity: 1; font-weight: bold; text-decoration: underline; }