/* public/css/mobile.css */

/* Structure de base */
body { font-family: Arial, sans-serif; background-color: #f3f4f6; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
.header { background-color: #1e3a8a; color: white; padding: 1.5rem 1rem; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header h1 { margin: 0; font-size: 1.5rem; }
.header p { margin: 5px 0 0 0; font-size: 0.9rem; opacity: 0.8; }
.container { flex: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Dashboard (Grille et Boutons) */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 500px; margin: 0 auto; }
.btn-dashboard { background-color: white; border-radius: 15px; padding: 2rem 1rem; text-align: center; text-decoration: none; color: #333; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.1s; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.btn-dashboard:active { transform: scale(0.95); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.btn-dashboard .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.btn-dashboard .btn-title { font-weight: bold; font-size: 1.1rem; }
.logout-form { margin-top: 2rem; text-align: center; width: 100%; }
.btn-logout { background: none; border: none; color: #dc2626; font-size: 1rem; font-weight: bold; text-decoration: underline; cursor: pointer; padding: 10px; }

/* Formulaires (pour tes vues de connexion) */
.login-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); width: 100%; max-width: 400px; box-sizing: border-box; }
.login-card h2 { text-align: center; color: #333; font-size: 1.3rem; margin-top: 0; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; width: 100%; }
label { display: block; margin-bottom: 0.5rem; color: #666; font-size: 0.9rem; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 1rem; }
input[readonly] { background-color: #e5e7eb; color: #6b7280; outline: none; }
.btn-primary { width: 100%; padding: 0.75rem; background-color: #2563eb; color: white; border: none; border-radius: 5px; font-size: 1rem; cursor: pointer; margin-top: 1rem; }
.error { color: #dc2626; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }
.status { color: #15803d; font-size: 0.9rem; margin-bottom: 1rem; text-align: center; padding: 10px; background: #dcfce7; border-radius: 5px; }
.link-center { display: block; text-align: center; margin-top: 1rem; color: #2563eb; text-decoration: none; font-size: 0.9rem; }


/* Barre de recherche et Liste */
.search-bar { width: 100%; padding: 1rem; border: 1px solid #ccc; border-radius: 10px; font-size: 1rem; margin-bottom: 1.5rem; box-sizing: border-box; }
.list-container { width: 100%; max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.list-item { background: white; padding: 1rem; border-radius: 10px; text-decoration: none; color: #333; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; }
.list-item:active { background: #f9fafb; transform: scale(0.98); }
.item-info { display: flex; flex-direction: column; }
.item-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 0.2rem; }
.item-city { color: #666; font-size: 0.9rem; }
.item-arrow { color: #2563eb; font-weight: bold; font-size: 1.5rem; }

/* --- Boutons d'action pour les machines --- */
.item-actions { display: flex; gap: 0.5rem; flex-direction: column; justify-content: center; }
.btn-action { padding: 0.6rem 0.8rem; border-radius: 8px; color: white; font-weight: bold; font-size: 0.85rem; text-align: center; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-action:active { transform: scale(0.95); }
.btn-green { background-color: #16a34a; }
.btn-orange { background-color: #f59e0b; }
.btn-red { background-color: #dc2626; }

.list-item { 
    background: white; 
    padding: 1rem; 
    border-radius: 10px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    display: flex; /* Très important pour aligner les infos et les boutons */
    align-items: center; 
    justify-content: space-between;
    margin-bottom: 0.8rem;
    min-width: 0;
}