body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
}
#login-view, #app-view {
    width: 300px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
}
input, select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #3367D6;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #2851A8;
}
#qrcode-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.hidden {
    display: none;
}

.user-list {
    margin-top: 20px;
}
.user-status {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}
.status-indicator.disponible { background-color: #28a745; }
.status-indicator.occupé { background-color: #ffc107; }
.status-indicator.absent { background-color: #dc3545; }

.user-name {
    font-weight: bold;
    flex-grow: 1;
}
.user-role {
    font-size: 0.9em;
    color: #6c757d;
}

.status-changer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.status-changer h2 {
    margin-top: 0;
    font-size: 1.2em;
}
.status-btn {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}
.status-btn.disponible { background-color: #28a745; }
.status-btn.occupé { background-color: #ffc107; color: #212529;}
.status-btn.absent { background-color: #dc3545; }

.admin-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.admin-section h2 {
    margin-top: 0;
    font-size: 1.2em;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.activation-status {
    font-size: 0.8em;
    font-style: italic;
    margin-left: 5px;
}
.activation-status.pending {
    color: #ffc107;
}
.activation-status.expired {
    color: #dc3545;
}
.user-status.editable {
    cursor: pointer;
}
.user-status.editable:hover {
    background-color: #f0f2f5;
}
#edit-user-view label {
    display: block;
    margin-top: 10px;
    text-align: left;
    font-weight: bold;
}

#delete-user-btn {
    margin-top: 10px;
}

#edit-user-view button {
    margin-top: 10px;
}
