/* style.css - Version mobile first */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #f0f2f5; padding: 12px; line-height: 1.5; }
.container { max-width: 600px; margin: 0 auto; }
.card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header { text-align: center; margin-bottom: 20px; }
h1 { color: #2c5f2d; font-size: 1.6rem; margin-bottom: 5px; }
h2 { color: #333; font-size: 1.3rem; margin-bottom: 15px; border-left: 4px solid #2c5f2d; padding-left: 12px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; color: #333; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 14px 12px; border: 1px solid #ddd; border-radius: 12px; font-size: 1rem; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: #2c5f2d; }
button, .btn { background: #2c5f2d; color: white; border: none; padding: 14px 20px; border-radius: 40px; font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.3s; text-align: center; }
button:hover, .btn:hover { background: #1e4520; }
.btn-secondary { background: #17a2b8; }
.btn-secondary:hover { background: #138496; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: #28a745; }
.btn-success:hover { background: #218838; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.colis-card { background: #f8f9fa; border-radius: 12px; padding: 15px; margin-bottom: 12px; border-left: 4px solid #2c5f2d; }
.colis-code { font-family: monospace; font-size: 1.2rem; font-weight: bold; color: #2c5f2d; background: white; padding: 4px 10px; border-radius: 20px; display: inline-block; }
.colis-statut { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; }
.statut-enregistre { background: #6c757d; color: white; }
.statut-depart { background: #17a2b8; color: white; }
.statut-livre { background: #28a745; color: white; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { flex: 1; background: #e0e0e0; border: none; padding: 12px 8px; border-radius: 40px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: center; }
.tab-btn.active { background: #2c5f2d; color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .row-2 { grid-template-columns: 1fr 1fr; gap: 15px; } }
.logout { background: #dc3545; margin-top: 20px; }
.footer { text-align: center; margin-top: 20px; padding: 15px; color: #888; font-size: 0.75rem; }
hr { margin: 12px 0; border: none; border-top: 1px solid #eee; }
.text-center { text-align: center; }