body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: linear-gradient(135deg, #f0fdf4 0%, #e2e8f0 100%);
margin: 0;
padding: 15px;
box-sizing: border-box;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

.container {
background: white;
padding: 25px 20px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
width: 100%;
max-width: 650px;
box-sizing: border-box;
}

.view {
display: none;
}

.view.active {
display: block;
}

/* Stile Login Avanzato e Degno */
.login-card-header {
text-align: center;
margin-bottom: 25px;
}

.login-logo-circle {
width: 64px;
height: 64px;
background: linear-gradient(135deg, #16a34a, #15803d);
color: white;
font-size: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
margin: 0 auto 15px auto;
box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.login-title {
font-size: 20px;
color: #1e293b;
margin: 0 0 5px 0;
font-weight: 700;
}

.login-subtitle {
font-size: 13px;
color: #64748b;
margin: 0;
}

.login-footer-note {
text-align: center;
margin-top: 20px;
font-size: 11px;
color: #94a3b8;
border-top: 1px solid #f1f5f9;
padding-top: 15px;
}

/* Header dell'app */
.app-header {
background-color: #1e293b;
color: white;
padding: 12px 15px;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}

.app-header h2 {
margin: 0;
font-size: 16px;
letter-spacing: 0.5px;
}

.app-header button {
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
color: #fca5a5;
font-weight: bold;
cursor: pointer;
font-size: 13px;
padding: 5px 10px;
border-radius: 4px;
}

.app-header button:hover {
background: rgba(255,255,255,0.2);
}

/* Form e pulsanti */
.form-group {
margin-bottom: 16px;
}

.form-group label {
display: block;
margin-bottom: 6px;
font-weight: 600;
font-size: 13px;
color: #334155;
}

.form-group input {
width: 100%;
padding: 12px;
box-sizing: border-box;
border: 1px solid #cbd5e1;
border-radius: 6px;
font-size: 15px;
transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
border-color: #16a34a;
outline: none;
box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.btn-main, .btn-secondary {
width: 100%;
padding: 13px;
border: none;
border-radius: 6px;
font-size: 15px;
cursor: pointer;
box-sizing: border-box;
font-weight: 600;
transition: background-color 0.2s, transform 0.1s;
}

.btn-main {
background-color: #16a34a;
color: white;
box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-main:hover {
background-color: #15803d;
}

.btn-secondary {
background-color: #64748b;
color: white;
margin-top: 8px;
}

.btn-secondary:hover {
background-color: #475569;
}

/* Dashboard box */
.user-welcome-box {
display: flex;
justify-content: space-between;
align-items: center;
background: #f8fafc;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
border: 1px solid #e2e8f0;
}

.badge-status-active {
background: #dcfce7;
padding: 6px 12px;
border-radius: 6px;
font-size: 11px;
font-weight: bold;
color: #166534;
text-align: center;
border: 1px solid #bbf7d0;
}

/* Griglia disponibilità campi */
.days-scroll {
display: flex;
gap: 8px;
overflow-x: auto;
padding-bottom: 8px;
margin-bottom: 15px;
white-space: nowrap;
}

.day-btn {
padding: 8px 14px;
border: 1px solid #cbd5e1;
background: #f8fafc;
border-radius: 20px;
cursor: pointer;
font-size: 13px;
flex-shrink: 0;
color: #334155;
}

.day-btn.active {
background-color: #16a34a;
color: white;
border-color: #16a34a;
font-weight: bold;
}

.slot-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid #f1f5f9;
}

.badge-sport {
padding: 6px 10px;
border-radius: 6px;
color: white;
font-size: 12px;
font-weight: bold;
border: none;
cursor: pointer;
}

.badge-tennis { background-color: #0284c7; }
.badge-padel { background-color: #d97706; }
.badge-pickleball { background-color: #9333ea; }

/* Stile tabelle e sezioni parametri allineato a WP */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
font-size: 13px;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
overflow: hidden;
display: table;
}

th {
background: #f1f5f9;
color: #1e293b;
padding: 10px 12px;
text-align: left;
border-bottom: 1px solid #cbd5e1;
font-weight: 600;
}

td {
padding: 10px 12px;
border-bottom: 1px solid #f1f5f9;
color: #334155;
}

h3, h4, .pwa-section-title {
font-size: 15px;
color: #1e293b;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 6px;
margin-top: 25px;
margin-bottom: 12px;
font-weight: bold;
}