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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
    background-image: url('../images/world-map-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Menu utente */
.user-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #f1f5f9;
    border-radius: 5px;
}

.user-menu span {
    margin-right: 15px;
    font-weight: 600;
    color: #334155;
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.9rem;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #c53030;
}

/* Menu principale */
.menu-principale {
    text-align: center;
    margin-bottom: 50px;
}

.menu-principale h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    min-width: 250px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

.btn-secondary:hover {
    background-color: #bdc3c7;
    border-color: #95a5a6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Descrizione del gioco */
.game-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(236, 240, 241, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.game-description h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.game-description p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
}

/* Indicatore Consenso Disponibile */
.consensus-indicator {
    padding: 10px 15px;
    margin: 10px 0;
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consensus-label {
    font-weight: bold;
    color: #2b6cb0;
}

.consensus-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c5282;
}

.consensus-bar {
    flex-grow: 1;
    margin: 0 15px;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.consensus-progress {
    height: 100%;
    background-color: #4299e1;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Modifica colore in base al consenso disponibile */
.consensus-low .consensus-progress {
    background-color: #f56565;
}

.consensus-medium .consensus-progress {
    background-color: #ecc94b;
}

.consensus-high .consensus-progress {
    background-color: #48bb78;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        min-width: 200px;
        padding: 12px 20px;
    }
    
    .game-description {
        padding: 20px;
    }
    
    .consensus-indicator {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .consensus-bar {
        width: 100%;
        margin: 10px 0;
    }
}

/* Stili per il pannello economia */
.economy-panel {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.economy-panel h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.economy-panel h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #34495e;
}

.budget-overview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.budget-current {
    background-color: #e9f7ef;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
}

.budget-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #27ae60;
    margin: 5px 0;
}

.budget-flows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.budget-income, .budget-expenses, .budget-actions, .budget-balance {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.budget-income {
    background-color: #ebf5fb;
    border-left: 3px solid #3498db;
}

.budget-expenses {
    background-color: #fdedec;
    border-left: 3px solid #e74c3c;
}

.budget-actions {
    background-color: #fef9e7;
    border-left: 3px solid #f1c40f;
}

.budget-balance {
    background-color: #eaecee;
    border-left: 3px solid #7f8c8d;
}

.income-value {
    color: #3498db;
    font-weight: bold;
    font-size: 1.2em;
}

.expenses-value {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
}

.actions-value {
    color: #f1c40f;
    font-weight: bold;
    font-size: 1.2em;
}

.balance-value {
    font-weight: bold;
    font-size: 1.2em;
}

.budget-forecast {
    background-color: #f4f6f7;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid #9b59b6;
    margin-bottom: 15px;
}

.forecast-value {
    font-size: 1.5em;
    font-weight: bold;
    margin: 5px 0;
}

.positive {
    color: #27ae60;
}

.negative {
    color: #e74c3c;
}

.budget-chart {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 200px;
    position: relative;
} 