* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif; }
body { 
    background-color: #f2f2f2; /* Grigio chiaro per staccare dal contenitore */
    color: #2b2b2b; /* Antracite */
    margin: 0; padding: 0;
    width: 100vw; overflow-x: hidden;
}
.header {
    background-color: #2b2b2b; /* Antracite */
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header img { max-height: 40px; }

#app {
    background-color: #ffffff; /* Bianco */
    min-height: calc(100vh - 70px);
    display: flex; flex-direction: column;
}
.section { padding: 20px; display: flex; flex-direction: column; gap: 15px; }

h2 { color: #2b2b2b; margin-top: 0; font-size: 22px; }
h3 { color: #cc0000; margin-top: 0; font-size: 18px; } /* Rosso Primeview */
.red-text { color: #cc0000; }
.error { color: #cc0000; font-weight: bold; font-size: 14px; text-align: center;}

label { font-weight: bold; font-size: 14px; color: #666; margin-bottom: -10px;}

/* Form & Inputs adatti per le dita */
input, select { 
    width: 100%; padding: 15px; border-radius: 8px; border: 1px solid #ccc; 
    font-size: 16px; /* Previene lo zoom su iOS */
    background-color: #fafafa;
}
input[type="file"] { padding: 10px; background: #fff;}

/* Pulsanti */
button { 
    background-color: #cc0000; /* Rosso */
    color: #ffffff; border: none; font-weight: bold; 
    min-height: 50px; border-radius: 8px; cursor: pointer; font-size: 16px;
    box-shadow: 0 4px 6px rgba(204, 0, 0, 0.2);
}
button:active { transform: scale(0.98); }
button.secondary { background-color: #2b2b2b; box-shadow: none; } /* Antracite */
button.danger { background-color: #ffffff; color: #cc0000; border: 2px solid #cc0000; box-shadow: none; }
.btn-google { background-color: #ffffff; color: #2b2b2b; border: 1px solid #ccc; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: none; }

/* UI Componenti */
.card { background: #ffffff; border: 1px solid #eee; border-left: 4px solid #cc0000; padding: 15px; border-radius: 8px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);}
.project-item { padding: 15px; border: 1px solid #eee; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; background: #fafafa; margin-bottom: 10px;}
.project-item button { min-height: 40px; padding: 0 15px; }
.status-open { color: #28a745; font-weight: bold; font-size: 12px;}
.status-closed { color: #666; font-weight: bold; font-size: 12px;}
.expenses-container { margin-top: 10px; margin-bottom: 20px; }
.expense-item { background: #fafafa; border: 1px solid #ddd; padding: 12px; border-radius: 6px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 14px;}
.expense-item strong { color: #2b2b2b; }
.expense-item small { color: #666; display: block; margin-top: 4px; }
.receipt-link { color: #cc0000; text-decoration: none; font-weight: bold; font-size: 13px; border: 1px solid #cc0000; padding: 5px 8px; border-radius: 4px;}