.frontend-user-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Formularios */
.user-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.user-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    padding: 5px;
}

.toggle-password:hover {
    opacity: 0.8;
}

/* Botones */
.submit-btn,
.cancel-btn,
.edit-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.submit-btn {
    background: #007cba;
    color: white;
}

.submit-btn:hover {
    background: #005a87;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    margin-left: 10px;
}

.cancel-btn:hover {
    background: #545b62;
}

.edit-btn {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    font-size: 13px;
}

.edit-btn:hover {
    background: #218838;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Lista de usuarios */
.user-list-container {
    margin-top: 40px;
    overflow-x: auto;
}

.user-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-list-table th,
.user-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.user-list-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.user-list-table tr:hover {
    background: #f8f9fa;
}

.user-list-table td:last-child {
    text-align: center;
}

/* Mensajes */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-messages {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.no-users {
    text-align: center;
    padding: 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
}

.admin-note {
    margin-top: 20px;
    padding: 10px 15px;
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .frontend-user-management {
        padding: 10px;
    }
    
    .user-form {
        padding: 20px;
    }
    
    .user-list-table {
        font-size: 14px;
    }
    
    .user-list-table th,
    .user-list-table td {
        padding: 8px 10px;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}