/* === Clean UI for Gestione 1090 === */

body {
    background: #f8f9fb;
    color: #333;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
}

a { color: #4f46e5; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 0; }

/* === Navbar === */
.navbar {
    background: #1e293b !important;
    padding: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.navbar-brand { font-weight: 700; font-size: 1.1rem; }
.navbar .nav-link { color: #cbd5e1 !important; font-size: 0.9rem; padding: 0.4rem 0.8rem !important; border-radius: 6px; margin: 0 1px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.1); }
.navbar .nav-link.text-light { color: #94a3b8 !important; }

/* === Cards === */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    background: #fff;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.7rem 1rem;
}
.card-body { padding: 1rem; }

/* === Tables === */
.table { font-size: 0.85rem; margin: 0; }
.table th {
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.5rem 0.7rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
.table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid #f1f5f9; color: #475569; }
.table-hover tbody tr:hover { background: #f8fafc; }
.table-bordered { border-color: #e2e8f0; }
.table-bordered th, .table-bordered td { border-color: #e2e8f0; }

/* === Buttons === */
.btn {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
}
.btn-sm { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
.btn-lg { padding: 0.6rem 1.4rem; font-size: 0.95rem; }
.btn-primary { background: #4f46e5; border-color: #4f46e5; }
.btn-primary:hover { background: #4338ca; }
.btn-success { background: #059669; border-color: #059669; }
.btn-outline-secondary { color: #64748b; border-color: #cbd5e1; }
.btn-outline-danger { color: #dc2626; border-color: #cbd5e1; }
.btn-outline-success { color: #059669; border-color: #cbd5e1; }
.btn-outline-info { color: #0891b2; border-color: #cbd5e1; }
.btn-outline-warning { color: #d97706; border-color: #cbd5e1; }

/* === Badges === */
.badge { font-weight: 500; font-size: 0.72rem; padding: 0.25em 0.55em; border-radius: 4px; }
.bg-success { background: #059669 !important; }
.bg-secondary { background: #94a3b8 !important; }

/* === Forms === */
.form-label { font-weight: 500; font-size: 0.8rem; color: #475569; margin-bottom: 0.25rem; }
.form-control, .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.45rem 0.7rem;
}
.form-control:focus, .form-select:focus { border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,0.12); }
.form-select { cursor: pointer; }

/* === Alerts === */
.alert { border: none; border-radius: 8px; font-size: 0.88rem; padding: 0.7rem 1rem; }
.alert-info { background: #ecfeff; color: #0e7490; }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger { background: #fef2f2; color: #b91c1c; }

/* === List group === */
.list-group-item { padding: 0.7rem 1rem; border-color: #e2e8f0; }
.list-group-item-action:hover { background: #f8fafc; }

/* === Stats === */
.stat-card { border-radius: 8px; border: none; color: #fff; }
.stat-card .card-body { padding: 1.2rem; }
.stat-card h3 { font-size: 1.6rem; font-weight: 700; }

/* === Container === */
.container { padding-top: 1.2rem; padding-bottom: 2rem; }

/* === Modal === */
.modal-content { border-radius: 8px; border: none; }

/* === Print === */
@media print {
    .no-print, nav { display: none !important; }
    body { background: #fff; }
    .card { border: none !important; box-shadow: none !important; }
}
