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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #8f008f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.main-card, .admin-card {
    background-color: #00fff0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

.date-section {
    margin-bottom: 30px;
    text-align: center;
}

.date-display {
    background-color: white;
    color: #000;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.quick-action-section {
    margin-bottom: 30px;
    text-align: center;
}

.bike-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.bike-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent);
}

.divider span {
    background-color: #00fff0;
    padding: 0 20px;
    color: #000;
    font-size: 0.9rem;
    font-style: italic;
}

.info-section {
    margin-bottom: 40px;
}

.info-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    border-left: 4px solid #8f008f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-item.bike-mode {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
}

.info-item.bike-mode .info-value {
    color: #27ae60;
    font-weight: 600;
}

.info-label {
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-value {
    font-size: 1.2rem;
    color: #000;
    font-weight: 500;
}

.admin-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(238, 90, 82, 0.3);
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
}

.login-section {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #8f008f;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: #000;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #8f008f;
    box-shadow: 0 0 0 3px rgba(143, 0, 143, 0.1);
}

.login-button, .save-button, .back-button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.login-button {
    background: linear-gradient(135deg, #8f008f, #6a0066);
    color: white;
    width: 100%;
}

.save-button {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.back-button {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    color: #333;
}

.login-button:hover, .save-button:hover, .back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

.success-message {
    color: #27ae60;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

.form-section {
    margin-top: 20px;
}

.admin-panel {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .main-card, .admin-card {
        padding: 25px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .date-display {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .button-group {
        flex-direction: column;
    }

    .save-button, .back-button {
        width: 100%;
    }

    .bike-button {
        font-size: 1rem;
        padding: 12px;
    }
}
/* Estensioni PWA; la grafica storica di OrariWOW rimane invariata. */
[hidden] { display: none !important; }
.install-admin {
  margin-top: 14px; padding: 18px 20px; background: #00fff0;
  border-radius: 20px; text-align: center; color: #121212;
}
.hint { font-size: .87rem; line-height: 1.5; color: #1f1631; margin: 8px 0 12px; }
.primary-action, .secondary-action { padding: 12px 16px; border-radius: 12px; cursor:pointer; border:0; font-weight:600; margin: 4px 0; width:100%; }
.primary-action { background: #8f008f; color:white; }
.secondary-action { background: white; color:#5a0062; border:2px solid #8f008f; }
.primary-action:disabled, .secondary-action:disabled, button:disabled { opacity: .55; cursor:wait; }
.import-box { background: #fff; padding: 12px; border-radius:12px; margin-top:16px; }
.updates-title { font-size: 1rem; margin-top:24px; }
#updates p { border-bottom: 1px solid #8885; padding:8px 0; }
.admin-install-hint { color: #fff; text-align:center; }
#sessionExpiry { text-align:center; color:#5b005b; font-weight:600; }
#successMessage { min-height: 24px; }
